blib/lib/WebService/MinFraud/Client.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 20 | 24 | 83.3 |
line | true | false | branch |
---|---|---|---|
167 | 39 | 14 | if $version |
185 | 9 | 44 | if ($response->code == 200) { } |
1 | 43 | elsif ($response->code == 204) { } | |
209 | 0 | 53 | unless $content |
213 | 159 | 0 | unless (exists $content->{$object} and exists $content->{$object}{$key}) |
219 | 0 | 0 | $content->{$object}{$key} ? : |
252 | 36 | 7 | if ($status =~ /^4/) { } |
4 | 3 | elsif ($status =~ /^5/) { } | |
273 | 35 | 1 | if $has_body and $response->content_type =~ /json/ |
278 | 32 | 4 | if ($body) { } |
279 | 29 | 3 | if ($body->{'code'} or $body->{'error'}) { } |
294 | 3 | 1 | $has_body ? : |