Branch Coverage

blib/lib/JSON/RPC/Dispatcher.pm
Criterion Covered Total %
branch 4 64 6.2


line true false branch
203 2 16 if (defined $name and $name =~ /^rpc\./) { }
4 12 elsif (not defined $name or $name eq '' or ref $name) { }
221 0 0 if ($request->method eq 'POST') { }
0 0 elsif ($request->method eq 'GET') { }
240 0 0 if ($@) { }
249 0 0 if (ref $request eq 'ARRAY') { }
0 0 elsif (ref $request eq 'HASH') { }
274 0 0 exists $params->{'params'} ? :
287 0 0 if (defined $params)
288 0 0 unless (ref $params eq 'ARRAY' or ref $params eq 'HASH')
294 0 0 if (ref $params eq 'HASH') { }
0 0 elsif (ref $params eq 'ARRAY') { }
300 0 0 if ($self->rpcs->{$proc->method}{'with_plack_request'})
327 0 0 defined $proc->id && $proc->id ne '' ? :
328 0 0 unless ($proc->has_error_code)
331 0 0 if (defined $code_ref) { }
333 0 0 if ($JSON::RPC::Dispatcher::log->is_info)
335 0 0 if (my $func = $self->rpcs->{$proc->method}{'log_request_as'})
343 0 0 if ($@ and ref $@ eq 'ARRAY') { }
0 0 elsif ($@) { }
350 0 0 if (&blessed($error) and $error->can('error') and $error->can('trace')) { }
0 0 elsif (&blessed($error) and $error->can('error')) { }
0 0 elsif (ref $error ne '' and ref $error ne 'HASH' and ref $error ne 'ARRAY') { }
376 0 0 if (exists $response->{'error'}{'code'}) { }
384 0 0 unless ($is_notification)
390 0 0 if (scalar @responses > 1) { }
407 0 0 if ($self->has_error_code) { }
422 0 0 if ($rpc_response) { }
424 0 0 if ($@)
435 0 0 ref $rpc_response eq 'HASH' && exists $rpc_response->{'error'} ? :
439 0 0 if ($response->status == 200) { }
440 0 0 if $JSON::RPC::Dispatcher::log->is_info