Condition Coverage

blib/lib/Lim/RPC/Protocol/JSONRPC2.pm
Criterion Covered Total %
condition 8 27 29.6


and 3 conditions

line !l l&&!r l&&r condition
74 0 0 1 blessed $request and $request->isa('HTTP::Request')
78 0 0 1 $request->header('Content-Type') =~ m[(?:^|\s)application/json(?:$|\s|;)]ou and $request->uri =~ m[^/([a-zA-Z]+)\s*$]ou
86 0 0 1 defined $server and $server->have_module($module)
93 0 0 1 ref $jsonreq eq 'HASH' and exists $$jsonreq{'jsonrpc'}
0 0 1 ref $jsonreq eq 'HASH' and exists $$jsonreq{'jsonrpc'} and exists $$jsonreq{'id'}
0 0 1 ref $jsonreq eq 'HASH' and exists $$jsonreq{'jsonrpc'} and exists $$jsonreq{'id'} and exists $$jsonreq{'method'}
0 0 1 ref $jsonreq eq 'HASH' and exists $$jsonreq{'jsonrpc'} and exists $$jsonreq{'id'} and exists $$jsonreq{'method'} and $$jsonreq{'jsonrpc'} eq '2.0'
110 1 0 0 blessed $result and $result->isa('Lim::Error')
192 0 0 0 $@ and not defined $jsonresp