Condition Coverage

blib/lib/JSON/RPC2/TwoWay/Connection.pm
Criterion Covered Total %
condition 17 33 51.5


and 3 conditions

line !l l&&!r l&&r condition
22 0 0 2 $opt{'rpc'} and $opt{'rpc'}->isa("JSON::RPC2::TwoWay")
24 1 0 1 $opt{'write'} and ref $opt{'write'} eq "CODE"
108 0 1 14 defined $r->{'jsonrpc'} and $r->{'jsonrpc'} eq "2.0"
110 3 10 1 exists $r->{'id'} and ref $r->{'id'}
111 0 4 0 exists $r->{'id'} and exists $r->{'result'} || defined $r->{'error'}
131 0 0 1 defined $e->{'code'} and $e->{'code'} =~ /^-?\d+$/
133 1 0 0 keys %$e == 3 and not exists $e->{'data'}

or 3 conditions

line l !l&&r !l&&!r condition
44 0 4 1 ref $args eq "ARRAY" or ref $args eq "HASH"
82 0 0 0 ref $args eq "ARRAY" or ref $args eq "HASH"
111 2 1 1 exists $r->{'result'} || defined $r->{'error'}
133 0 0 1 keys %$e == 3 and not exists $e->{'data'} or keys %$e > 2