@@ -14,7 +14,7 @@
Loading
14 14
    parameters::Vector{Any}
15 15
end
16 16
17 -
function FakeTypeName(@nospecialize(x); justname = false)
17 +
function FakeTypeName(@nospecialize(x); justname=false)
18 18
    if x isa DataType
19 19
        xname = x.name
20 20
        xnamename = xname.name
@@ -46,18 +46,18 @@
Loading
46 46
    a
47 47
    b
48 48
end
49 -
FakeUnion(u::Union) = FakeUnion(FakeTypeName(u.a, justname = true), FakeTypeName(u.b, justname = true))
49 +
FakeUnion(u::Union) = FakeUnion(FakeTypeName(u.a, justname=true), FakeTypeName(u.b, justname=true))
50 50
struct FakeTypeVar
51 51
    name::Symbol
52 52
    lb
53 53
    ub
54 54
end
55 -
FakeTypeVar(tv::TypeVar) = FakeTypeVar(tv.name, FakeTypeName(tv.lb, justname = true), FakeTypeName(tv.ub, justname = true))
55 +
FakeTypeVar(tv::TypeVar) = FakeTypeVar(tv.name, FakeTypeName(tv.lb, justname=true), FakeTypeName(tv.ub, justname=true))
56 56
struct FakeUnionAll
57 57
    var::FakeTypeVar
58 58
    body::Any
59 59
end
60 -
FakeUnionAll(ua::UnionAll) = FakeUnionAll(FakeTypeVar(ua.var), FakeTypeName(ua.body, justname = true))
60 +
FakeUnionAll(ua::UnionAll) = FakeUnionAll(FakeTypeVar(ua.var), FakeTypeName(ua.body, justname=true))
61 61
62 62
function _parameter(@nospecialize(p))
63 63
    if p isa Union{Int,Symbol,Bool,Char}
@@ -67,7 +67,7 @@
Loading
67 67
    elseif p isa Tuple
68 68
        _parameter.(p)
69 69
    else
70 -
        FakeTypeName(p, justname = true)
70 +
        FakeTypeName(p, justname=true)
71 71
    end
72 72
end
73 73
@@ -84,11 +84,11 @@
Loading
84 84
    end
85 85
end
86 86
Base.print(io::IO, x::FakeUnionAll) = print(io, x.body, " where ", x.var)
87 -
function Base.print(io::IO, x::FakeUnion; inunion = false)
87 +
function Base.print(io::IO, x::FakeUnion; inunion=false)
88 88
    !inunion && print(io,  "Union{")
89 89
    print(io, x.a, ",")
90 90
    if x.b isa FakeUnion
91 -
        print(io, x.b, inunion = true)
91 +
        print(io, x.b, inunion=true)
92 92
    else
93 93
        print(io, x.b, "}")
94 94
    end

@@ -16,12 +16,12 @@
Loading
16 16
    canceled_processes::Set{Process}
17 17
    store_path::String
18 18
19 -
    function SymbolServerInstance(depot_path::String = "", store_path::Union{String,Nothing} = nothing)
19 +
    function SymbolServerInstance(depot_path::String="", store_path::Union{String,Nothing}=nothing)
20 20
        return new(nothing, depot_path, Set{Process}(), store_path === nothing ? abspath(joinpath(@__DIR__, "..", "store")) : store_path)
21 21
    end
22 22
end
23 23
24 -
function getstore(ssi::SymbolServerInstance, environment_path::AbstractString, progress_callback = nothing, error_handler = nothing)
24 +
function getstore(ssi::SymbolServerInstance, environment_path::AbstractString, progress_callback=nothing, error_handler=nothing)
25 25
    !ispath(environment_path) && return :success, recursive_copy(stdlibs)
26 26
27 27
    jl_cmd = joinpath(Sys.BINDIR, Base.julia_exename())
@@ -91,7 +91,7 @@
Loading
91 91
92 92
    take!(server_is_ready)
93 93
94 -
    p = open(pipeline(Cmd(`$jl_cmd --code-coverage=$(use_code_coverage==0 ? "none" : "user") --startup-file=no --compiled-modules=no --history-file=no --project=$environment_path $server_script $(ssi.store_path) $pipename`, env = env_to_use), stderr = stderr_for_client_process), read = true, write = true)
94 +
    p = open(pipeline(Cmd(`$jl_cmd --code-coverage=$(use_code_coverage==0 ? "none" : "user") --startup-file=no --compiled-modules=no --history-file=no --project=$environment_path $server_script $(ssi.store_path) $pipename`, env=env_to_use), stderr=stderr_for_client_process), read=true, write=true)
95 95
    ssi.process = p
96 96
97 97
    if success(p)

@@ -135,7 +135,7 @@
Loading
135 135
end
136 136
137 137
const _global_method_cache = IdDict{Any,Vector{Any}}()
138 -
function methodinfo(@nospecialize(f); types = Tuple, world = typemax(UInt))
138 +
function methodinfo(@nospecialize(f); types=Tuple, world=typemax(UInt))
139 139
    key = (f, types, world)
140 140
    cached = get(_global_method_cache, key, nothing)
141 141
    if cached === nothing
@@ -158,7 +158,7 @@
Loading
158 158
    world = typemax(UInt)
159 159
    ms = Tuple{Module,MethodStore}[]
160 160
    methods0 = try
161 -
        methodinfo(f; types = types, world = world)
161 +
        methodinfo(f; types=types, world=world)
162 162
    catch err
163 163
        return ms
164 164
    end
@@ -230,10 +230,10 @@
Loading
230 230
    end
231 231
end
232 232
233 -
function apply_to_everything(f, m = nothing, visited = Base.IdSet{Module}())
233 +
function apply_to_everything(f, m=nothing, visited=Base.IdSet{Module}())
234 234
    if m isa Module
235 235
        push!(visited, m)
236 -
        for s in unsorted_names(m, all = true, imported = true)
236 +
        for s in unsorted_names(m, all=true, imported=true)
237 237
            (!isdefined(m, s) || s == nameof(m)) && continue
238 238
            x = getfield(m, s)
239 239
            f(x)
@@ -250,11 +250,11 @@
Loading
250 250
251 251
252 252
253 -
function oneverything(f, m = nothing, visited = Base.IdSet{Module}())
253 +
function oneverything(f, m=nothing, visited=Base.IdSet{Module}())
254 254
    if m isa Module
255 255
        push!(visited, m)
256 256
        state = nothing
257 -
        for s in unsorted_names(m, all = true)
257 +
        for s in unsorted_names(m, all=true)
258 258
            !isdefined(m, s) && continue
259 259
            x = getfield(m, s)
260 260
            state = f(m, s, x, state)
@@ -270,7 +270,7 @@
Loading
270 270
end
271 271
272 272
const _global_symbol_cache_by_mod = IdDict{Module,Base.IdSet{Symbol}}()
273 -
function build_namecache(m, s, @nospecialize(x), state::Union{Base.IdSet{Symbol},Nothing} = nothing)
273 +
function build_namecache(m, s, @nospecialize(x), state::Union{Base.IdSet{Symbol},Nothing}=nothing)
274 274
    if state === nothing
275 275
        state = get(_global_symbol_cache_by_mod, m, nothing)
276 276
        if state === nothing
@@ -291,7 +291,7 @@
Loading
291 291
292 292
function allmodulenames()
293 293
    symbols = Base.IdSet{Symbol}()
294 -
    oneverything((m, s, x, state)->(x isa Module && push!(symbols, s); return state))
294 +
    oneverything((m, s, x, state) -> (x isa Module && push!(symbols, s); return state))
295 295
    return symbols
296 296
end
297 297
@@ -320,10 +320,10 @@
Loading
320 320
usedby(outer, inner) = outer !== inner && isdefined(outer, nameof(inner)) && getproperty(outer, nameof(inner)) === inner && all(isdefined(outer, name) || !isdefined(inner, name) for name in unsorted_names(inner))
321 321
istoplevelmodule(m) = parentmodule(m) === m || parentmodule(m) === Main
322 322
323 -
function getmoduletree(m::Module, amn, visited = Base.IdSet{Module}())
323 +
function getmoduletree(m::Module, amn, visited=Base.IdSet{Module}())
324 324
    push!(visited, m)
325 325
    cache = ModuleStore(m)
326 -
    for s in unsorted_names(m, all = true, imported = true)
326 +
    for s in unsorted_names(m, all=true, imported=true)
327 327
        !isdefined(m, s) && continue
328 328
        x = getfield(m, s)
329 329
        if x isa Module
@@ -352,12 +352,12 @@
Loading
352 352
    cache
353 353
end
354 354
355 -
function getenvtree(names = nothing)
355 +
function getenvtree(names=nothing)
356 356
    amn = allmodulenames()
357 357
    EnvStore(nameof(m) => getmoduletree(m, amn) for m in Base.loaded_modules_array() if names === nothing || nameof(m) in names)
358 358
end
359 359
360 -
function symbols(env::EnvStore, m::Union{Module,Nothing} = nothing, allnames::Base.IdSet{Symbol} = getallns(), visited = Base.IdSet{Module}())
360 +
function symbols(env::EnvStore, m::Union{Module,Nothing}=nothing, allnames::Base.IdSet{Symbol}=getallns(), visited=Base.IdSet{Module}())
361 361
    if m isa Module
362 362
        cache = _lookup(VarRef(m), env, true)
363 363
        cache === nothing && return
@@ -452,7 +452,7 @@
Loading
452 452
    cache[:Base][Symbol("@.")] = cache[:Base][Symbol("@__dot__")]
453 453
    cache[:Core][:Main] = GenericStore(VarRef(nothing, :Main), FakeTypeName(Module), _doc(Main), true)
454 454
    # Add built-ins
455 -
    builtins = Symbol[nameof(getfield(Core, n).instance) for n in unsorted_names(Core, all = true) if isdefined(Core, n) && getfield(Core, n) isa DataType && isdefined(getfield(Core, n), :instance) && getfield(Core, n).instance isa Core.Builtin]
455 +
    builtins = Symbol[nameof(getfield(Core, n).instance) for n in unsorted_names(Core, all=true) if isdefined(Core, n) && getfield(Core, n) isa DataType && isdefined(getfield(Core, n), :instance) && getfield(Core, n).instance isa Core.Builtin]
456 456
    cnames = unsorted_names(Core)
457 457
    for f in builtins
458 458
        if !haskey(cache[:Core], f)
@@ -529,7 +529,7 @@
Loading
529 529
end
530 530
531 531
532 -
function collect_extended_methods(depot::EnvStore, extendeds = Dict{VarRef,Vector{VarRef}}())
532 +
function collect_extended_methods(depot::EnvStore, extendeds=Dict{VarRef,Vector{VarRef}}())
533 533
    for m in depot
534 534
        collect_extended_methods(m[2], extendeds, m[2].name)
535 535
    end
@@ -546,7 +546,7 @@
Loading
546 546
    end
547 547
end
548 548
549 -
getallns() = let allns = Base.IdSet{Symbol}(); SymbolServer.oneverything((m, s, x, state)->push!(allns, s)); allns end
549 +
getallns() = let allns = Base.IdSet{Symbol}(); SymbolServer.oneverything((m, s, x, state) -> push!(allns, s)); allns end
550 550
551 551
"""
552 552
    split_module_names(m::Module, allns)
@@ -577,5 +577,5 @@
Loading
577 577
    internal_names, availablenames
578 578
end
579 579
580 -
get_all_modules() = let allms = Base.IdSet{Module}(); apply_to_everything(x->if x isa Module push!(allms, x) end); allms end
581 -
get_used_modules(M, allms = get_all_modules()) = [m for m in allms if usedby(M, m)]
580 +
get_all_modules() = let allms = Base.IdSet{Module}(); apply_to_everything(x -> if x isa Module push!(allms, x) end); allms end
581 +
get_used_modules(M, allms=get_all_modules()) = [m for m in allms if usedby(M, m)]

@@ -171,7 +171,7 @@
Loading
171 171
    is_package_deved(manifest, uuid) = manifest[uuid].path !== nothing
172 172
end
173 173
174 -
function sha2_256_dir(path, sha = sha = zeros(UInt8, 32))
174 +
function sha2_256_dir(path, sha=sha = zeros(UInt8, 32))
175 175
    (uperm(path) & 0x04) != 0x04 && return
176 176
    startswith(path, ".") && return
177 177
    if isfile(path) && endswith(path, ".jl")
@@ -231,10 +231,10 @@
Loading
231 231
    end
232 232
end
233 233
234 -
_lookup(vr::FakeUnion, depot::EnvStore, cont = false) = nothing
235 -
_lookup(vr::FakeTypeName, depot::EnvStore, cont = false) = _lookup(vr.name, depot, cont)
236 -
_lookup(vr::FakeUnionAll, depot::EnvStore, cont = false) = _lookup(vr.body, depot, cont)
237 -
function _lookup(vr::VarRef, depot::EnvStore, cont = false)
234 +
_lookup(vr::FakeUnion, depot::EnvStore, cont=false) = nothing
235 +
_lookup(vr::FakeTypeName, depot::EnvStore, cont=false) = _lookup(vr.name, depot, cont)
236 +
_lookup(vr::FakeUnionAll, depot::EnvStore, cont=false) = _lookup(vr.body, depot, cont)
237 +
function _lookup(vr::VarRef, depot::EnvStore, cont=false)
238 238
    if vr.parent === nothing
239 239
        if haskey(depot, vr.name)
240 240
            val = depot[vr.name]
@@ -341,7 +341,7 @@
Loading
341 341
get_top_module(vr::VarRef) = vr.parent === nothing ? vr.name : get_top_module(vr.parent)
342 342
343 343
# Sorting is the main performance of calling `names`
344 -
unsorted_names(m::Module; all::Bool = false, imported::Bool = false) =
344 +
unsorted_names(m::Module; all::Bool=false, imported::Bool=false) =
345 345
    ccall(:jl_module_names, Array{Symbol,1}, (Any, Cint, Cint), m, all, imported)
346 346
347 347
## recursive_copy
Files Coverage
src 74.49%
Project Totals (5 files) 74.49%
codecov-umbrella
Build #223329716 -
unittests
codecov-umbrella
Build #223329716 -
unittests
codecov-umbrella
Build #223329716 -
unittests
codecov-umbrella
Build #223329716 -
unittests
codecov-umbrella
Build #223329716 -
unittests
codecov-umbrella
Build #223329716 -
unittests
codecov-umbrella
Build #223329716 -
unittests
codecov-umbrella
Build #223329716 -
unittests
codecov-umbrella
Build #223329716 -
unittests
codecov-umbrella
Build #223329716 -
unittests
codecov-umbrella
Build #223329716 -
unittests
codecov-umbrella
Build #223329716 -
unittests
codecov-umbrella
Build #223329716 -
unittests
codecov-umbrella
Build #223329716 -
unittests
codecov-umbrella
Build #223329716 -
unittests
codecov-umbrella
Build #223329716 -
unittests
codecov-umbrella
Build #223329716 -
unittests
codecov-umbrella
Build #223329716 -
unittests
codecov-umbrella
Build #223329716 -
unittests
codecov-umbrella
Build #223329716 -
unittests
codecov-umbrella
Build #223329716 -
unittests
codecov-umbrella
Build #223329716 -
unittests
codecov-umbrella
Build #223329716 -
unittests
codecov-umbrella
Build #223329716 -
unittests
codecov-umbrella
Build #223329716 -
unittests
codecov-umbrella
Build #223329716 -
unittests
codecov-umbrella
Build #223329716 -
unittests
codecov-umbrella
Build #223329716 -
unittests
codecov-umbrella
Build #223329716 -
unittests
codecov-umbrella
Build #223329716 -
unittests

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading