| lib/MojoX/JSON/RPC/Client.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 20 | 34 | 58.8 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 75 | 0 | 1 | 1 | defined $methods and ref $methods eq '' |
| 86 | 3 | 0 | 0 | exists $m{$method} and $m{$method} ne $uri |
| 106 | 0 | 37 | 0 | $log and $log->is_level('debug') |
| 120 | 37 | 0 | 0 | $decode_error and $log |
| 185 | 0 | 15 | 25 | ref $rpc_response eq 'HASH' && exists $rpc_response->{'result'} |
| 194 | 0 | 0 | 26 | ref $rpc_response eq 'HASH' && exists $rpc_response->{'id'} |
| 201 | 0 | 23 | 71 | ref $rpc_response eq 'HASH' && exists $rpc_response->{'error'} |
| line | l | !l | condition |
|---|---|---|---|
| 24 | 5 | 2 | $body ||= '' |
| 119 | 34 | 3 | $tx_res->body || '{}' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 17 | 25 | 5 | 7 | ref $body eq 'HASH' or ref $body eq 'ARRAY' |
| 19 | 0 | 36 | 0 | $o->{'version'} ||= $self->version |
| 111 | 28 | 9 | 0 | $tx_res->is_success or $tx_res->is_client_error |