blib/lib/JSON/RPC/Simple/Client.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 17 | 26 | 65.3 |
line | true | false | branch |
---|---|---|---|
22 | 1 | 1 | unless ref $attrs eq 'HASH' |
27 | 0 | 2 | exists $$attrs{'timeout'} ? : |
39 | 1 | 1 | if $get and substr($uri, -1, 1) ne '/' |
70 | 1 | 3 | if (not $$self{'GET'}) { } |
86 | 1 | 2 | if $params and ref $params ne 'HASH' |
87 | 1 | 1 | unless $params |
99 | 3 | 0 | if ($r->is_success) { } |
100 | 0 | 3 | unless ($r->content_type =~ m[application/json]) |
105 | 0 | 0 | unless $r->content_type =~ m[^application/json] |
112 | 0 | 3 | if ($$self{'debug'}) |
121 | 0 | 3 | if $@ |
122 | 0 | 3 | unless ref $result eq 'HASH' |
123 | 0 | 3 | if $$result{'error'} |