| blib/lib/Net/IPData.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 16 | 26 | 61.5 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 46 | 5 | 1 | 1 | $args{'eu'} and not $base_url |
| 76 | 1 | 0 | 9 | defined $ip && length $ip |
| 97 | 0 | 1 | 9 | defined $ip and length $ip |
| 98 | 0 | 1 | 8 | defined $field and length $field |
| 223 | 0 | 0 | 0 | $status >= 200 and $status < 300 |
| line | l | !l | condition |
|---|---|---|---|
| 49 | 3 | 4 | $base_url //= "https://api.ipdata.co" |
| 52 | 1 | 6 | $args{'timeout'} // 30 |
| 185 | 15 | 0 | $path // "" |
| 207 | 15 | 0 | $response->{'content'} // "" |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 231 | 6 | 0 | 0 | $data->{'message'} // "HTTP $status error" |