Condition Coverage

blib/lib/JSON/RPC/Dispatcher.pm
Criterion Covered Total %
condition 9 43 20.9


and 3 conditions

line !l l&&!r l&&r condition
203 1 15 2 defined $name and $name =~ /^rpc\./
327 0 0 0 defined $proc->id && $proc->id ne ''
343 0 0 0 $@ and ref $@ eq 'ARRAY'
350 0 0 0 &blessed($error) and $error->can('error')
0 0 0 &blessed($error) and $error->can('error') and $error->can('trace')
0 0 0 &blessed($error) and $error->can('error')
0 0 0 ref $error ne '' and ref $error ne 'HASH'
0 0 0 ref $error ne '' and ref $error ne 'HASH' and ref $error ne 'ARRAY'
435 0 0 0 ref $rpc_response eq 'HASH' && exists $rpc_response->{'error'}

or 2 conditions

line l !l condition
310 0 0 $code ||= ''
317 0 0 $status ||= 500

or 3 conditions

line l !l&&r !l&&!r condition
203 1 1 14 not defined $name or $name eq ''
2 2 12 not defined $name or $name eq '' or ref $name
275 0 0 0 $@ || $decoded_params
288 0 0 0 ref $params eq 'ARRAY' or ref $params eq 'HASH'