Condition Coverage

File:blib/lib/Geo/Coder/List.pm
Coverage:73.1%

line%coveragecondition
354100
Adec
00
11
Params::Get::get_params(undef, \@_) || {}
37450
Adec
00
11
$clone->{'geocoders'} // []
384100
ABdec
000
011
1X1
$params->{$key} //= $config{$key}
4960
ABdec
0X0
100
111
defined $location and length $location
620100
ABdec
000
011
1X1
not defined $location or length $location == 0
661100
ABdec
0X0
100
111
defined $cached and not ref $cached
72133
ABdec
0X0
100
111
ref $stored and ref $stored eq "Geo::Coder::List::_NotFound"
74567
ABdec
0X0
100
111
exists $geocoder->{'limit'} and defined(my $limit = $geocoder->{'limit'})
79167
ABdec
0X0
100
111
ref $geocoder eq "Geo::Coder::US::Census" and not defined $rc[0]{'result'}{'addressMatches'}[0]{'coordinates'}{'y'}
811100
ABCdec
00X0
0100
0111
1XX1
scalar @rc == 0 or ref $rc[0] eq "HASH" and scalar keys %{$rc[0];} == 0
833100
ABdec
000
011
1X1
not defined $l or $l eq ""
86367
ABdec
0X0
100
111
not defined $l->{'geometry'}{'location'}{'lat'} and defined $l->{'lat'}
86533
ABdec
000
011
1X1
$l->{'lng'} // $l->{'lon'}
86967
ABdec
000
011
1X1
$l->{'lat'} //= $l->{'geometry'}{'location'}{'lat'}
87067
ABdec
000
011
1X1
$l->{'lng'} //= $l->{'geometry'}{'location'}{'lng'}
87133
ABdec
000
011
1X1
$l->{'lon'} //= $l->{'geometry'}{'location'}{'lng'}
905100
ABdec
0X0
100
111
defined $l->{'lat'} and defined $l->{'lon'}
98567
ABdec
0X0
100
111
defined $lat and defined $long
100933
ABdec
000
011
1X1
$l->{'lng'} // $l->{'lon'}
75
ABCdec
0000
0011
01X1
1XX1
$l->{'geometry'}{'location'}{'lng'} //= ($l->{'lng'} // $l->{'lon'}) // $l->{'long'}
1015100
ABdec
0X0
100
111
defined $l->{'geometry'}{'location'}{'lat'} and defined $l->{'geometry'}{'location'}{'lng'}
102167
ABdec
000
011
1X1
$l->{'lat'} //= $l->{'geometry'}{'location'}{'lat'}
102267
ABdec
000
011
1X1
$l->{'lng'} //= $l->{'geometry'}{'location'}{'lng'}
102367
ABdec
000
011
1X1
$l->{'lon'} //= $l->{'geometry'}{'location'}{'lng'}
105633
ABdec
0X0
100
111
defined $good_result->{'lat'} and defined $good_result->{'lng'}
1151100
ABdec
0X0
100
111
$ua->can("clone") and $ua->can("agent")
1154100
Adec
00
11
eval {         do {         $geocoder->VERSION } } // ""
1248100
ABdec
000
011
1X1
ref $latlng or not $latlng =~ /$LATLNG_RE/
125333
ABdec
000
011
1X1
$params->{'lat'} //= $latitude
125433
ABdec
000
011
1X1
$params->{'lon'} //= $longitude
127367
ABdec
0X0
100
111
exists $geocoder->{'limit'} and defined(my $limit = $geocoder->{'limit'})
136267
ABdec
000
011
1X1
$self->_cache($latlng) // eval {         do {         $geocoder->reverse_geocode(%{$params;}) } }
1517100
Adec
00
11
$self->{'log'} // []
1580100
Adec
00
11
$usa->{'usstnumber'} // ""
1590100
Adec
00
11
$loc->{'stnumber'} // ""
166333
ABdec
000
011
1X1
$duration //= defined $item->{'geometry'} ? $self->{'cache_part_duration'} : $self->{'cache_miss_duration'}
166967
ABdec
000
011
1X1
$duration //= $self->{'cache_hit_duration'}
1717100
ABdec
0X0
100
111
not defined $rc and $self->{'cache'}
1732100
ABdec
0X0
100
111
ref $rc and ref $rc eq "Geo::Coder::List::_NotFound"
173767
ABdec
000
011
1X1
$rc->{'lat'} //= $rc->{'geometry'}{'location'}{'lat'}
173867
ABdec
000
011
1X1
$rc->{'lng'} //= $rc->{'geometry'}{'location'}{'lng'}
173967
ABdec
000
011
1X1
$rc->{'lon'} //= $rc->{'geometry'}{'location'}{'lng'}
1752100
ABdec
0X0
100
111
ref $item and &reftype($item) eq "HASH"
1760100
ABdec
000
011
1X1
$keep_all or &blessed($item)
1783100
Adec
00
11
$_ // ""