Branch Coverage

blib/lib/JSON/RPC/Dispatcher.pm
Criterion Covered Total %
branch 0 60 0.0


line true false branch
211 0 0 if ($request->method eq 'POST') { }
0 0 elsif ($request->method eq 'GET') { }
230 0 0 if ($@) { }
239 0 0 if (ref $request eq 'ARRAY') { }
0 0 elsif (ref $request eq 'HASH') { }
264 0 0 exists $params->{'params'} ? :
277 0 0 if (defined $params)
278 0 0 unless (ref $params eq 'ARRAY' or ref $params eq 'HASH')
284 0 0 if (ref $params eq 'HASH') { }
0 0 elsif (ref $params eq 'ARRAY') { }
290 0 0 if ($self->rpcs->{$proc->method}{'with_plack_request'})
317 0 0 defined $proc->id && $proc->id ne '' ? :
318 0 0 unless ($proc->has_error_code)
321 0 0 if (defined $code_ref) { }
323 0 0 if ($JSON::RPC::Dispatcher::log->is_info)
325 0 0 if (my $func = $self->rpcs->{$proc->method}{'log_request_as'})
333 0 0 if ($@ and ref $@ eq 'ARRAY') { }
0 0 elsif ($@) { }
340 0 0 if ($error->can('error') and $error->can('trace')) { }
0 0 elsif ($error->can('error')) { }
0 0 elsif (ref $error ne '' and ref $error ne 'HASH' and ref $error ne 'ARRAY') { }
366 0 0 if (exists $response->{'error'}{'code'}) { }
374 0 0 unless ($is_notification)
380 0 0 if (scalar @responses > 1) { }
397 0 0 if ($self->has_error_code) { }
412 0 0 if ($rpc_response) { }
414 0 0 if ($@)
425 0 0 ref $rpc_response eq 'HASH' && exists $rpc_response->{'error'} ? :
429 0 0 if ($response->status == 200) { }
430 0 0 if $JSON::RPC::Dispatcher::log->is_info