line |
true |
false |
branch |
17
|
30 |
7 |
if (ref $body eq 'HASH' or ref $body eq 'ARRAY') { } |
18
|
25 |
5 |
ref $body eq 'HASH' ? : |
28
|
35 |
2 |
if (ref $callback ne 'CODE') { } |
29
|
33 |
2 |
if ($body ne '') { } |
|
2 |
0 |
elsif ($uri =~ /\?/msux) { } |
41
|
2 |
0 |
if ($body ne '') { } |
|
0 |
0 |
elsif ($uri =~ /\?/msux) { } |
75
|
0 |
2 |
if (ref $methods eq 'SCALAR') { } |
|
1 |
1 |
elsif (defined $methods and ref $methods eq '') { } |
81
|
0 |
2 |
if (ref $methods ne 'ARRAY') |
86
|
0 |
3 |
if (exists $m{$method} and $m{$method} ne $uri) |
105
|
37 |
0 |
if $self->ua->server->app |
106
|
0 |
37 |
if ($log and $log->is_level('debug')) |
111
|
0 |
37 |
unless ($tx_res->is_success or $tx_res->is_client_error) |
119
|
0 |
37 |
unless eval {
do {
$rpc_res = decode_json($tx_res->body || '{}');
1
}
} |
120
|
0 |
37 |
if ($decode_error and $log) |
130
|
2 |
35 |
ref $rpc_res eq 'ARRAY' ? : |
155
|
1 |
3 |
if ($method eq 'DESTROY') |
159
|
0 |
3 |
unless (exists $self->{'methods'}{$method}) |
170
|
3 |
0 |
defined $res ? : |
185
|
25 |
15 |
ref $rpc_response eq 'HASH' && exists $rpc_response->{'result'} ? : |
194
|
26 |
0 |
ref $rpc_response eq 'HASH' && exists $rpc_response->{'id'} ? : |
201
|
71 |
23 |
ref $rpc_response eq 'HASH' && exists $rpc_response->{'error'} ? : |
207
|
14 |
0 |
$self->is_error ? : |
212
|
14 |
0 |
$self->is_error ? : |
217
|
14 |
0 |
$self->is_error ? : |