@@ -15,7 +15,7 @@
Loading
15 15
# all calls in the current frame and the same "line"
16 16
calls_on_line(state, args...) = calls_on_line(state.frame, args...)
17 17
calls_on_line(::Nothing, args...) = []
18 -
function calls_on_line(frame::JuliaInterpreter.Frame, line = nothing)
18 +
function calls_on_line(frame::JuliaInterpreter.Frame, line=nothing)
19 19
    if line === nothing
20 20
        loc = JuliaInterpreter.whereis(frame)
21 21
        if loc === nothing

@@ -20,7 +20,7 @@
Loading
20 20
21 21
        delete!(ENV, "JL_ARGS")
22 22
23 -
        cmd_ln_args_decoded = map(i->String(Base64.base64decode(i)), cmd_ln_args_encoded)
23 +
        cmd_ln_args_decoded = map(i -> String(Base64.base64decode(i)), cmd_ln_args_encoded)
24 24
25 25
        for arg in cmd_ln_args_decoded
26 26
            push!(ARGS, arg)
@@ -30,7 +30,7 @@
Loading
30 30
    return pipename, crashreporting_pipename
31 31
end
32 32
33 -
function startdebug(socket, error_handler = nothing)
33 +
function startdebug(socket, error_handler=nothing)
34 34
    @debug "Connected to debug adapter."
35 35
36 36
    try
@@ -44,30 +44,30 @@
Loading
44 44
            state = DebuggerState()
45 45
46 46
            msg_dispatcher = JSONRPC.MsgDispatcher()
47 -
            msg_dispatcher[disconnect_request_type] = (conn, params)->disconnect_request(conn, state, params)
48 -
            msg_dispatcher[run_notification_type] = (conn, params)->run_notification(conn, state, params)
49 -
            msg_dispatcher[debug_notification_type] = (conn, params)->debug_notification(conn, state, params)
50 -
51 -
            msg_dispatcher[exec_notification_type] = (conn, params)->exec_notification(conn, state, params)
52 -
            msg_dispatcher[set_break_points_request_type] = (conn, params)->set_break_points_request(conn, state, params)
53 -
            msg_dispatcher[set_exception_break_points_request_type] = (conn, params)->set_exception_break_points_request(conn, state, params)
54 -
            msg_dispatcher[set_function_exception_break_points_request_type] = (conn, params)->set_function_break_points_request(conn, state, params)
55 -
            msg_dispatcher[stack_trace_request_type] = (conn, params)->stack_trace_request(conn, state, params)
56 -
            msg_dispatcher[scopes_request_type] = (conn, params)->scopes_request(conn, state, params)
57 -
            msg_dispatcher[source_request_type] = (conn, params)->source_request(conn, state, params)
58 -
            msg_dispatcher[variables_request_type] = (conn, params)->variables_request(conn, state, params)
59 -
            msg_dispatcher[continue_request_type] = (conn, params)->continue_request(conn, state, params)
60 -
            msg_dispatcher[next_request_type] = (conn, params)->next_request(conn, state, params)
61 -
            msg_dispatcher[step_in_request_type] = (conn, params)->setp_in_request(conn, state, params)
62 -
            msg_dispatcher[step_in_targets_request_type] = (conn, params)->step_in_targets_request(conn, state, params)
63 -
            msg_dispatcher[step_out_request_type] = (conn, params)->setp_out_request(conn, state, params)
64 -
            msg_dispatcher[evaluate_request_type] = (conn, params)->evaluate_request(conn, state, params)
65 -
            msg_dispatcher[terminate_request_type] = (conn, params)->terminate_request(conn, state, params)
66 -
            msg_dispatcher[exception_info_request_type] = (conn, params)->exception_info_request(conn, state, params)
67 -
            msg_dispatcher[restart_frame_request_type] = (conn, params)->restart_frame_request(conn, state, params)
68 -
            msg_dispatcher[set_variable_request_type] = (conn, params)->set_variable_request(conn, state, params)
69 -
            msg_dispatcher[threads_request_type] = (conn, params)->threads_request(conn, state, params)
70 -
            msg_dispatcher[breakpointslocation_request_type] = (conn, params)->breakpointlocations_request(conn, state, params)
47 +
            msg_dispatcher[disconnect_request_type] = (conn, params) -> disconnect_request(conn, state, params)
48 +
            msg_dispatcher[run_notification_type] = (conn, params) -> run_notification(conn, state, params)
49 +
            msg_dispatcher[debug_notification_type] = (conn, params) -> debug_notification(conn, state, params)
50 +
51 +
            msg_dispatcher[exec_notification_type] = (conn, params) -> exec_notification(conn, state, params)
52 +
            msg_dispatcher[set_break_points_request_type] = (conn, params) -> set_break_points_request(conn, state, params)
53 +
            msg_dispatcher[set_exception_break_points_request_type] = (conn, params) -> set_exception_break_points_request(conn, state, params)
54 +
            msg_dispatcher[set_function_exception_break_points_request_type] = (conn, params) -> set_function_break_points_request(conn, state, params)
55 +
            msg_dispatcher[stack_trace_request_type] = (conn, params) -> stack_trace_request(conn, state, params)
56 +
            msg_dispatcher[scopes_request_type] = (conn, params) -> scopes_request(conn, state, params)
57 +
            msg_dispatcher[source_request_type] = (conn, params) -> source_request(conn, state, params)
58 +
            msg_dispatcher[variables_request_type] = (conn, params) -> variables_request(conn, state, params)
59 +
            msg_dispatcher[continue_request_type] = (conn, params) -> continue_request(conn, state, params)
60 +
            msg_dispatcher[next_request_type] = (conn, params) -> next_request(conn, state, params)
61 +
            msg_dispatcher[step_in_request_type] = (conn, params) -> setp_in_request(conn, state, params)
62 +
            msg_dispatcher[step_in_targets_request_type] = (conn, params) -> step_in_targets_request(conn, state, params)
63 +
            msg_dispatcher[step_out_request_type] = (conn, params) -> setp_out_request(conn, state, params)
64 +
            msg_dispatcher[evaluate_request_type] = (conn, params) -> evaluate_request(conn, state, params)
65 +
            msg_dispatcher[terminate_request_type] = (conn, params) -> terminate_request(conn, state, params)
66 +
            msg_dispatcher[exception_info_request_type] = (conn, params) -> exception_info_request(conn, state, params)
67 +
            msg_dispatcher[restart_frame_request_type] = (conn, params) -> restart_frame_request(conn, state, params)
68 +
            msg_dispatcher[set_variable_request_type] = (conn, params) -> set_variable_request(conn, state, params)
69 +
            msg_dispatcher[threads_request_type] = (conn, params) -> threads_request(conn, state, params)
70 +
            msg_dispatcher[breakpointslocation_request_type] = (conn, params) -> breakpointlocations_request(conn, state, params)
71 71
72 72
            @async try
73 73
                for msg in endpoint

@@ -28,7 +28,7 @@
Loading
28 28
        return
29 29
    end
30 30
31 -
    ex = Base.parse_input_line(file_content; filename = filename_to_debug)
31 +
    ex = Base.parse_input_line(file_content; filename=filename_to_debug)
32 32
33 33
    # handle a case when lowering fails
34 34
    if !is_valid_expression(ex)
@@ -159,7 +159,7 @@
Loading
159 159
                        end
160 160
                        if all_args_are_legit
161 161
162 -
                            return (mod = Main, name = parsed_name.args[1], signature = map(j->j.args[1], parsed_name.args[2:end]), condition = parsed_condition)
162 +
                            return (mod = Main, name = parsed_name.args[1], signature = map(j -> j.args[1], parsed_name.args[2:end]), condition = parsed_condition)
163 163
                        else
164 164
                            return (mod = Main, name = parsed_name.args[1], signature = nothing, condition = parsed_condition)
165 165
                        end
@@ -179,7 +179,7 @@
Loading
179 179
        return nothing
180 180
    end
181 181
182 -
    bps = filter(i->i !== nothing, bps)
182 +
    bps = filter(i -> i !== nothing, bps)
183 183
184 184
    for bp in JuliaInterpreter.breakpoints()
185 185
        if bp isa JuliaInterpreter.BreakpointSignature
@@ -276,7 +276,7 @@
Loading
276 276
            else
277 277
                src = curr_fr.framecode.src
278 278
                src = JuliaInterpreter.copy_codeinfo(src)
279 -
                JuliaInterpreter.replace_coretypes!(src; rev = true)
279 +
                JuliaInterpreter.replace_coretypes!(src; rev=true)
280 280
                code = Base.invokelatest(JuliaInterpreter.framecode_lines, src)
281 281
282 282
                state.sources[state.next_source_id] = join(code, '\n')
@@ -371,17 +371,17 @@
Loading
371 371
    scopes = []
372 372
373 373
    if isfile(file_name) && code_range !== nothing
374 -
        push!(scopes, Scope(name = "Local", variablesReference = local_var_ref_id, expensive = false, source = Source(name = basename(file_name), path = file_name), line = code_range.start, endLine = code_range.stop))
375 -
        push!(scopes, Scope(name = "Global", variablesReference = global_var_ref_id, expensive = false, source = Source(name = basename(file_name), path = file_name), line = code_range.start, endLine = code_range.stop))
374 +
        push!(scopes, Scope(name="Local", variablesReference=local_var_ref_id, expensive=false, source=Source(name=basename(file_name), path=file_name), line=code_range.start, endLine=code_range.stop))
375 +
        push!(scopes, Scope(name="Global", variablesReference=global_var_ref_id, expensive=false, source=Source(name=basename(file_name), path=file_name), line=code_range.start, endLine=code_range.stop))
376 376
    else
377 -
        push!(scopes, Scope(name = "Local", variablesReference = local_var_ref_id, expensive = false))
378 -
        push!(scopes, Scope(name = "Global", variablesReference = global_var_ref_id, expensive = false))
377 +
        push!(scopes, Scope(name="Local", variablesReference=local_var_ref_id, expensive=false))
378 +
        push!(scopes, Scope(name="Global", variablesReference=global_var_ref_id, expensive=false))
379 379
    end
380 380
381 381
    curr_mod = JuliaInterpreter.moduleof(curr_fr)
382 382
    push!(state.varrefs, VariableReference(:module, curr_mod))
383 383
384 -
    push!(scopes, Scope(name = "Global ($(curr_mod))", variablesReference = length(state.varrefs), expensive = true))
384 +
    push!(scopes, Scope(name="Global ($(curr_mod))", variablesReference=length(state.varrefs), expensive=true))
385 385
386 386
    return ScopesResponseArguments(scopes)
387 387
end
@@ -420,22 +420,22 @@
Loading
420 420
        end
421 421
422 422
        return Variable(
423 -
            name = name,
424 -
            value = v_value_as_string,
425 -
            type = string(v_type),
426 -
            variablesReference = new_var_id,
427 -
            namedVariables = named_count,
428 -
            indexedVariables = indexed_count
423 +
            name=name,
424 +
            value=v_value_as_string,
425 +
            type=string(v_type),
426 +
            variablesReference=new_var_id,
427 +
            namedVariables=named_count,
428 +
            indexedVariables=indexed_count
429 429
        )
430 430
    else
431 -
        return Variable(name = name, value = v_value_as_string, type = string(v_type), variablesReference = 0)
431 +
        return Variable(name=name, value=v_value_as_string, type=string(v_type), variablesReference=0)
432 432
    end
433 433
end
434 434
435 435
function construct_return_msg_for_var_with_undef_value(state::DebuggerState, name)
436 436
    v_type_as_string = ""
437 437
438 -
    return Variable(name = name, type = v_type_as_string, value = "#undef", variablesReference = 0)
438 +
    return Variable(name=name, type=v_type_as_string, value="#undef", variablesReference=0)
439 439
end
440 440
441 441
function get_keys_with_drop_take(value, skip_count, take_count)
@@ -454,7 +454,7 @@
Loading
454 454
        func = frame.framedata.locals[1].value
455 455
        args = (m.sig.parameters[2:end]...,)
456 456
457 -
        ci = code_typed(func, args, optimize = false)[1][1]
457 +
        ci = code_typed(func, args, optimize=false)[1][1]
458 458
459 459
        return collect_global_refs(ci)
460 460
    catch err
@@ -463,14 +463,14 @@
Loading
463 463
    end
464 464
end
465 465
466 -
function collect_global_refs(ci::Core.CodeInfo, refs = Set([]))
466 +
function collect_global_refs(ci::Core.CodeInfo, refs=Set([]))
467 467
    for expr in ci.code
468 468
        collect_global_refs(expr, refs)
469 469
    end
470 470
    refs
471 471
end
472 472
473 -
function collect_global_refs(expr::Expr, refs = Set([]))
473 +
function collect_global_refs(expr::Expr, refs=Set([]))
474 474
    args = Meta.isexpr(expr, :call) ? expr.args[2:end] : expr.args
475 475
    for arg in args
476 476
        collect_global_refs(arg, refs)
@@ -483,7 +483,7 @@
Loading
483 483
collect_global_refs(expr::GlobalRef, refs) = push!(refs, expr)
484 484
485 485
function push_module_names!(variables, state, mod)
486 -
    for n in names(mod, all = true)
486 +
    for n in names(mod, all=true)
487 487
        !isdefined(mod, n) && continue
488 488
        Base.isdeprecated(mod, n) && continue
489 489
@@ -584,7 +584,7 @@
Loading
584 584
                        val = Base.invokelatest(getindex, var_ref.value, i)
585 585
                        s = construct_return_msg_for_var(state, join(string.(i.I), ','), val)
586 586
                    catch err
587 -
                        s = Variable(name = join(string.(i.I), ','), type = "", value = "#error", variablesReference = 0)
587 +
                        s = Variable(name=join(string.(i.I), ','), type="", value="#error", variablesReference=0)
588 588
                    end
589 589
                    push!(variables, s)
590 590
                end
@@ -848,7 +848,7 @@
Loading
848 848
end
849 849
850 850
function threads_request(conn, state::DebuggerState, params::Nothing)
851 -
    return ThreadsResponseArguments([Thread(id = 1, name = "Main Thread")])
851 +
    return ThreadsResponseArguments([Thread(id=1, name="Main Thread")])
852 852
end
853 853
854 854
function breakpointlocations_request(conn, state::DebuggerState, params::BreakpointLocationsArguments)
Files Coverage
src 0.17%
Project Totals (6 files) 0.17%
codecov-umbrella
Build #219880413 -
unittests
codecov-umbrella
Build #219880413 -
unittests
codecov-umbrella
Build #219880413 -
unittests
codecov-umbrella
Build #219880413 -
unittests
codecov-umbrella
Build #219880413 -
unittests
codecov-umbrella
Build #219880413 -
unittests
codecov-umbrella
Build #219880413 -
unittests
codecov-umbrella
Build #219880413 -
unittests
codecov-umbrella
Build #219880413 -
unittests
codecov-umbrella
Build #219880413 -
unittests
codecov-umbrella
Build #219880413 -
unittests
codecov-umbrella
Build #219880413 -
unittests
codecov-umbrella
Build #219880413 -
unittests
codecov-umbrella
Build #219880413 -
unittests
codecov-umbrella
Build #219880413 -
unittests
codecov-umbrella
Build #219880413 -
unittests
codecov-umbrella
Build #219880413 -
unittests
codecov-umbrella
Build #219880413 -
unittests
codecov-umbrella
Build #219880413 -
unittests
codecov-umbrella
Build #219880413 -
unittests
codecov-umbrella
Build #219880413 -
unittests
codecov-umbrella
Build #219880413 -
unittests
codecov-umbrella
Build #219880413 -
unittests
codecov-umbrella
Build #219880413 -
unittests
codecov-umbrella
Build #219880413 -
unittests
codecov-umbrella
Build #219880413 -
unittests
codecov-umbrella
Build #219880413 -
unittests
codecov-umbrella
Build #219880413 -
unittests
codecov-umbrella
Build #219880413 -
unittests
codecov-umbrella
Build #219880413 -
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