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
160 0 0 0 not wantarray and my $rc = $self->_cache($location)
178 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);}
215 0 0 0 exists $geocoder->{'limit'} and defined(my $limit = $geocoder->{'limit'})
259 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
310 0 0 0 $l->{'lat'} and defined $l->{'lon'}
370 0 0 0 defined $lat and defined $long
503 0 0 0 exists $geocoder->{'limit'} and defined(my $limit = $geocoder->{'limit'})
708 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
150 0 0 0 not defined $location or length $location == 0
259 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
385 0 0 0 $l->{'lat'} //= $l->{'geometry'}{'location'}{'lat'}
386 0 0 0 $l->{'lng'} //= $l->{'geometry'}{'location'}{'lng'}
491 0 0 0 $latitude //= $params{'lat'}
492 0 0 0 $longitude //= $params{'lon'}
493 0 0 0 $longitude //= $params{'long'}
513 0 0 0 $self->_cache($latlng) // $geocoder->reverse_geocode(%params)
716 0 0 0 $rc->{'lat'} //= $rc->{'geometry'}{'location'}{'lat'}
717 0 0 0 $rc->{'lng'} //= $rc->{'geometry'}{'location'}{'lng'}