Condition Coverage

blib/lib/Geo/Coder/List.pm
Criterion Covered Total %
condition 3 66 4.5


and 3 conditions

line !l l&&!r l&&r condition
158 0 0 0 not wantarray and my $rc = $self->_cache($location)
176 0 0 0 defined $self->_cache($location) and ref $self->_cache($location) eq "ARRAY"
0 0 0 defined $self->_cache($location) and ref $self->_cache($location) eq "ARRAY" and my(@rc) = @{$self->_cache($location);}
213 0 0 0 exists $geocoder->{'limit'} and defined(my $limit = $geocoder->{'limit'})
257 0 0 0 ref $rc[0] eq "HASH" and scalar keys %{$rc[0];} == 0
0 0 0 ref $rc[0] eq "ARRAY" and scalar keys %{$rc[0][0];} == 0
308 0 0 0 $l->{'lat'} and defined $l->{'lon'}
368 0 0 0 defined $lat and defined $long
500 0 0 0 exists $geocoder->{'limit'} and defined(my $limit = $geocoder->{'limit'})
705 0 0 0 not defined $rc and $self->{'cache'}

or 3 conditions

line l !l&&r !l&&!r condition
63 1 2 1 ref $proto || $proto
148 0 0 0 not defined $location or length $location == 0
257 0 0 0 scalar @rc == 0 or ref $rc[0] eq "HASH" and scalar keys %{$rc[0];} == 0
0 0 0 scalar @rc == 0 or ref $rc[0] eq "HASH" and scalar keys %{$rc[0];} == 0 or ref $rc[0] eq "ARRAY" and scalar keys %{$rc[0][0];} == 0
383 0 0 0 $l->{'lat'} //= $l->{'geometry'}{'location'}{'lat'}
384 0 0 0 $l->{'lng'} //= $l->{'geometry'}{'location'}{'lng'}
488 0 0 0 $latitude //= $params{'lat'}
489 0 0 0 $longitude //= $params{'lon'}
490 0 0 0 $longitude //= $params{'long'}
510 0 0 0 $self->_cache($latlng) // $geocoder->reverse_geocode(%params)
713 0 0 0 $rc->{'lat'} //= $rc->{'geometry'}{'location'}{'lat'}
714 0 0 0 $rc->{'lng'} //= $rc->{'geometry'}{'location'}{'lng'}