| blib/lib/JSON/RPC2/TwoWay/Connection.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 17 | 33 | 51.5 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 27 | 0 | 0 | 2 | $opt{'rpc'} and $opt{'rpc'}->isa("JSON::RPC2::TwoWay") |
| 29 | 1 | 0 | 1 | $opt{'write'} and ref $opt{'write'} eq "CODE" |
| 113 | 0 | 1 | 14 | defined $r->{'jsonrpc'} and $r->{'jsonrpc'} eq "2.0" |
| 115 | 3 | 10 | 1 | exists $r->{'id'} and ref $r->{'id'} |
| 116 | 0 | 4 | 0 | exists $r->{'id'} and exists $r->{'result'} || defined $r->{'error'} |
| 136 | 0 | 0 | 1 | defined $e->{'code'} and $e->{'code'} =~ /^-?\d+$/ |
| 138 | 1 | 0 | 0 | keys %$e == 3 and not exists $e->{'data'} |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 49 | 0 | 4 | 1 | ref $args eq "ARRAY" or ref $args eq "HASH" |
| 87 | 0 | 0 | 0 | ref $args eq "ARRAY" or ref $args eq "HASH" |
| 116 | 2 | 1 | 1 | exists $r->{'result'} || defined $r->{'error'} |
| 138 | 0 | 0 | 1 | keys %$e == 3 and not exists $e->{'data'} or keys %$e > 2 |