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)
179 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);}
217 0 0 0 exists $geocoder->{'limit'} and defined(my $limit = $geocoder->{'limit'})
261 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
312 0 0 0 $l->{'lat'} and defined $l->{'lon'}
372 0 0 0 defined $lat and defined $long
505 0 0 0 exists $geocoder->{'limit'} and defined(my $limit = $geocoder->{'limit'})
710 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
261 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
387 0 0 0 $l->{'lat'} //= $l->{'geometry'}{'location'}{'lat'}
388 0 0 0 $l->{'lng'} //= $l->{'geometry'}{'location'}{'lng'}
493 0 0 0 $latitude //= $params{'lat'}
494 0 0 0 $longitude //= $params{'lon'}
495 0 0 0 $longitude //= $params{'long'}
515 0 0 0 $self->_cache($latlng) // $geocoder->reverse_geocode(%params)
718 0 0 0 $rc->{'lat'} //= $rc->{'geometry'}{'location'}{'lat'}
719 0 0 0 $rc->{'lng'} //= $rc->{'geometry'}{'location'}{'lng'}