| blib/lib/Geo/What3Words.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 9 | 26 | 34.6 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 66 | 0 | 0 | 0 | $res and is_hashref($res) |
| 0 | 0 | 0 | $res and is_hashref($res) and exists $res->{'coordinates'} | |
| 77 | 1 | 0 | 0 | $res and is_hashref($res) |
| 1 | 0 | 0 | $res and is_hashref($res) and exists $res->{'words'} |
| line | l | !l | condition |
|---|---|---|---|
| 28 | 0 | 4 | $params{'api_endpoint'} || 'https://api.what3words.com/v3/' |
| 29 | 3 | 1 | $params{'key'} || die('API key not set') |
| 37 | 3 | 0 | $Geo::What3Words::VERSION || '' |
| 137 | 1 | 0 | shift() || {} |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 35 | 3 | 0 | 0 | $params{'ua'} || 'HTTP::Tiny'->new |
| 110 | 0 | 0 | 1 | shift() || $self->{'language'} |