Showing 1 of 1 files from the diff.

@@ -142,7 +142,7 @@
Loading
142 142
end
143 143
144 144
function send_notification(x::JSONRPCEndpoint, method::AbstractString, params)
145 -
    error_dead_endpoint!(x)
145 +
    check_dead_endpoint!(x)
146 146
147 147
    message = Dict("jsonrpc" => "2.0", "method" => method, "params" => params)
148 148
@@ -154,7 +154,7 @@
Loading
154 154
end
155 155
156 156
function send_request(x::JSONRPCEndpoint, method::AbstractString, params)
157 -
    error_dead_endpoint!(x)
157 +
    check_dead_endpoint!(x)
158 158
159 159
    id = string(UUIDs.uuid4())
160 160
    message = Dict("jsonrpc" => "2.0", "method" => method, "params" => params, "id" => id)
@@ -181,7 +181,7 @@
Loading
181 181
end
182 182
183 183
function get_next_message(endpoint::JSONRPCEndpoint)
184 -
    error_dead_endpoint!(endpoint)
184 +
    check_dead_endpoint!(endpoint)
185 185
186 186
    msg = take!(endpoint.in_msg_queue)
187 187
@@ -189,7 +189,7 @@
Loading
189 189
end
190 190
191 191
function Base.iterate(endpoint::JSONRPCEndpoint, state = nothing)
192 -
    error_dead_endpoint!(endpoint)
192 +
    check_dead_endpoint!(endpoint)
193 193
194 194
    try
195 195
        return take!(endpoint.in_msg_queue), nothing
@@ -203,7 +203,7 @@
Loading
203 203
end
204 204
205 205
function send_success_response(endpoint, original_request, result)
206 -
    error_dead_endpoint!(endpoint)
206 +
    check_dead_endpoint!(endpoint)
207 207
208 208
    response = Dict("jsonrpc" => "2.0", "id" => original_request["id"], "result" => result)
209 209
@@ -213,7 +213,7 @@
Loading
213 213
end
214 214
215 215
function send_error_response(endpoint, original_request, code, message, data)
216 -
    error_dead_endpoint!(endpoint)
216 +
    check_dead_endpoint!(endpoint)
217 217
218 218
    response = Dict("jsonrpc" => "2.0", "id" => original_request["id"], "error" => Dict("code" => code, "message" => message, "data" => data))
219 219
@@ -223,7 +223,7 @@
Loading
223 223
end
224 224
225 225
function Base.close(endpoint::JSONRPCEndpoint)
226 -
    error_dead_endpoint!(endpoint)
226 +
    check_dead_endpoint!(endpoint)
227 227
228 228
    while isready(endpoint.out_msg_queue)
229 229
        yield()
@@ -240,7 +240,7 @@
Loading
240 240
    # fetch(endpoint.read_task)
241 241
end
242 242
243 -
function error_dead_endpoint!(endpoint)
243 +
function check_dead_endpoint!(endpoint)
244 244
    status = endpoint.status
245 245
    status === :running && return
246 246
    error("Endpoint is not running, the current state is $(status).")
Files Coverage
src 90.82%
Project Totals (4 files) 90.82%
codecov-umbrella
Build #222122841 -
unittests
codecov-umbrella
Build #222122841 -
unittests
codecov-umbrella
Build #222122841 -
unittests
codecov-umbrella
Build #222122841 -
unittests
codecov-umbrella
Build #222122841 -
unittests
codecov-umbrella
Build #222122841 -
unittests
codecov-umbrella
Build #222122841 -
unittests
codecov-umbrella
Build #222122841 -
unittests
codecov-umbrella
Build #222122841 -
unittests
codecov-umbrella
Build #222122841 -
unittests
codecov-umbrella
Build #222122841 -
unittests
codecov-umbrella
Build #222122841 -
unittests
codecov-umbrella
Build #222122841 -
unittests
codecov-umbrella
Build #222122841 -
unittests
codecov-umbrella
Build #222122841 -
unittests
codecov-umbrella
Build #222122841 -
unittests
codecov-umbrella
Build #222122841 -
unittests
codecov-umbrella
Build #222122841 -
unittests
codecov-umbrella
Build #222122841 -
unittests
codecov-umbrella
Build #222122841 -
unittests
codecov-umbrella
Build #222122841 -
unittests
codecov-umbrella
Build #222122841 -
unittests
codecov-umbrella
Build #222122841 -
unittests
codecov-umbrella
Build #222122841 -
unittests
codecov-umbrella
Build #222122841 -
unittests
codecov-umbrella
Build #222122841 -
unittests
codecov-umbrella
Build #222122841 -
unittests
codecov-umbrella
Build #222122841 -
unittests
codecov-umbrella
Build #222122841 -
unittests
codecov-umbrella
Build #222122841 -
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