blib/lib/GeoIP2/WebService/Client.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 14 | 14 | 100.0 |
line | true | false | branch |
---|---|---|---|
168 | 7 | 9 | if ($response->code == 200) { } |
208 | 7 | 2 | if ($status =~ /^4/) { } |
1 | 1 | elsif ($status =~ /^5/) { } | |
226 | 2 | 5 | if ($status == 404) |
237 | 4 | 1 | if (defined $content and length $content) { } |
238 | 3 | 1 | if ($response->content_type =~ /json/) { } |
252 | 1 | 1 | unless $body->{'code'} and $body->{'error'} |