Condition Coverage

blib/lib/Geo/Coder/GeocodeFarm.pm
Criterion Covered Total %
condition 18 30 60.0


and 3 conditions

line !l l&&!r l&&r condition
147 1 0 1 $results->{'result'}{'0'} and $results->{'result'}{'accuracy'}
173 4 0 3 builtin::blessed($res) and $res->isa("HTTP::Response")
174 1 1 1 $self->{'raise_failure'} and not $res->is_success
177 1 2 1 $self->{'raise_failure'} and not $res->{'success'}
191 2 3 0 $self->{'raise_failure'} and ($data->{'STATUS'}{'status'} || '') ne "SUCCESS"

or 2 conditions

line l !l condition
87 0 9 $args{'url'} || 'https://api.geocode.farm/'
191 0 0 $data->{'STATUS'}{'status'} || 'unknown'
3 0 $data->{'STATUS'}{'status'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
87 9 0 0 $args{'ua'} || 'HTTP::Tiny'->new('agent', 'Geo::Coder::GeocodeFarm' . "/$VERSION")
0 9 0 $args{'parser'} || 'JSON'->new->utf8
117 4 1 0 $args{'location'} || croak('Attribute (location) is required')