| blib/lib/JSON/RPC2/TwoWay.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 20 | 30 | 66.6 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 62 | 4 | 1 | 1 | $opts{'non_blocking'} and $opts{'notification'} |
| 94 | 3 | 3 | 1 | ref $r->{'params'} ne 'ARRAY' and ref $r->{'params'} ne 'HASH' |
| 100 | 1 | 0 | 1 | $c->state && $m->{'state'} eq $c->state |
| 2 | 1 | 1 | $m->{'state'} and not $c->state && $m->{'state'} eq $c->state | |
| 112 | 0 | 0 | 0 | not $cb and $id |
| 124 | 1 | 0 | 2 | not $cb and $id |
| line | l | !l | condition |
|---|---|---|---|
| 30 | 0 | 1 | $opt{'debug'} // 0 |
| 100 | 1 | 0 | $m->{'state'} // 'undef' |
| 130 | 11 | 0 | "error: $code " . $message // '' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 30 | 0 | 1 | 0 | $opt{'json'} // 'JSON::MaybeXS'->new('utf8', 1) |
| 91 | 5 | 2 | 1 | $id or $m->{'notification'} |