Branch Coverage

blib/lib/MojoX/JSONRPC2/HTTP.pm
Criterion Covered Total %
branch 29 32 90.6


line true false branch
36 4 14 @params && ref $params[-1] eq 'CODE' ? :
43 4 14 if ('GET' eq uc $self->method) { }
45 3 1 if (exists $json->{'params'})
56 2 0 if $this
2 2 $cb ? :
68 2 0 if $this
2 11 $cb ? :
71 4 13 $cb ? :
81 1 16 if ($res->error and not $res->error->{'code'}) { }
3 13 elsif ($is_notify and not $res->is_success && $res->body =~ /\A\s*\z/msu) { }
0 13 elsif (not $is_notify || $res->is_success && $res->body =~ /\A\s*[{\[]/msu) { }
11 2 elsif (not $is_notify) { }
97 1 16 if ($failed and $call)
101 4 13 if ($cb) { }
102 2 2 $is_notify ? :
104 3 10 $is_notify ? :