Condition Coverage

lib/MojoX/JSON/RPC/Dispatcher.pm
Criterion Covered Total %
condition 36 50 72.0


and 3 conditions

line !l l&&!r l&&r condition
22 2 22 10 ref $rpc_response eq 'HASH' && exists $rpc_response->{'error'}
74 27 8 0 ref $request ne 'HASH' and ref $request ne 'ARRAY'
88 2 2 34 defined $method and $method =~ /^[A-Za-z_\.][A-Za-z0-9_\.]*$/msx
99 7 22 5 defined $params and ref $params ne 'ARRAY'
29 4 1 defined $params and ref $params ne 'ARRAY' and ref $params ne 'HASH'
110 5 0 28 exists $obj->{'id'} && defined $obj->{'id'}
28 0 5 not exists $obj->{'id'} && defined $obj->{'id'} and exists $obj->{'version'}
0 0 5 not exists $obj->{'id'} && defined $obj->{'id'} and exists $obj->{'version'} and defined $obj->{'version'}
0 5 0 not exists $obj->{'id'} && defined $obj->{'id'} and exists $obj->{'version'} and defined $obj->{'version'} and $obj->{'version'} eq '1.1'
123 5 0 28 exists $obj->{'id'} and defined $obj->{'id'}
127 22 4 0 ref $params ne 'ARRAY' and ref $params ne 'HASH'
168 2 0 31 defined $rpc and exists $rpc->{'method'}
184 17 0 14 exists $rpc->{'with_svc_obj'} && $rpc->{'with_svc_obj'}
28 0 3 exists $rpc->{'with_mojo_tx'} && $rpc->{'with_mojo_tx'}
28 0 3 exists $rpc->{'with_self'} && $rpc->{'with_self'}

or 2 conditions

line l !l condition
221 10 24 $code ||= ''

or 3 conditions

line l !l&&r !l&&!r condition
204 28 0 5 not $m->is_notification or $m->has_error