Branch Coverage

blib/lib/Dancer2/Plugin/RPC/JSONRPC.pm
Criterion Covered Total %
branch 28 30 93.3


line true false branch
44 2 7 $config->{'code_wrapper'} ? :
50 1 14 if ($plugin->app->request->content_type ne 'application/json')
63 2 13 unless (exists $dispatcher->{$method_name})
75 2 11 $callback ? :
80 1 12 if (my $error = $@)
88 0 12 if (not &blessed($continue) && $continue->isa('Dancer2::RPCPlugin::CallbackResult')) { }
1 11 elsif (&blessed($continue) and not $continue->success) { }
114 1 10 if (my $error = $@)
123 1 9 if (&blessed($result) and $result->can('as_jsonrpc_error')) { }
132 1 8 if (&blessed($result))
143 13 1 if (@responses == 1) { }
144 2 11 if (not defined $responses[0]{'id'}) { }
169 0 14 unless $body
173 13 1 if (ref $unjson ne 'ARRAY') { }
195 5 1 defined $id ? :