Condition Coverage

blib/lib/Lim/RPC/Protocol/JSONRPC1.pm
Criterion Covered Total %
condition 6 21 28.5


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{'id'}
0 0 1 ref $jsonreq eq 'HASH' and exists $$jsonreq{'id'} and exists $$jsonreq{'method'}
110 1 0 0 blessed $result and $result->isa('Lim::Error')
192 0 0 0 $@ and not defined $jsonresp