Condition Coverage

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

line%coveragecondition
152100
Adec
00
11
Params::Get::get_params(undef, \@_) || {}
174100
ABdec
000
011
1X1
$params->{$key} //= $config{$key}
313100
ABdec
000
011
1X1
not defined $location or length $location == 0
39633
ABdec
0X0
100
111
ref $stored and ref $stored eq "Geo::Coder::List::_NotFound"
41067
ABdec
0X0
100
111
exists $geocoder->{'limit'} and defined(my $limit = $geocoder->{'limit'})
46667
ABdec
0X0
100
111
ref $geocoder eq "Geo::Coder::US::Census" and not defined $rc[0]{'result'}{'addressMatches'}[0]{'coordinates'}{'y'}
481100
ABCdec
00X0
0100
0111
1XX1
scalar @rc == 0 or ref $rc[0] eq "HASH" and scalar keys %{$rc[0];} == 0 or 0
515100
ABdec
000
011
1X1
not defined $l or $l eq ""
54567
ABdec
0X0
100
111
not defined $l->{'geometry'}{'location'}{'lat'} and defined $l->{'lat'}
54733
ABdec
000
011
1X1
$l->{'lng'} // $l->{'lon'}
55167
ABdec
000
011
1X1
$l->{'lat'} //= $l->{'geometry'}{'location'}{'lat'}
55267
ABdec
000
011
1X1
$l->{'lng'} //= $l->{'geometry'}{'location'}{'lng'}
55333
ABdec
000
011
1X1
$l->{'lon'} //= $l->{'geometry'}{'location'}{'lng'}
587100
ABdec
0X0
100
111
defined $l->{'lat'} and defined $l->{'lon'}
66767
ABdec
0X0
100
111
defined $lat and defined $long
69467
ABdec
000
011
1X1
$l->{'lat'} //= $l->{'geometry'}{'location'}{'lat'}
695100
ABdec
000
011
1X1
$l->{'lng'} //= $l->{'geometry'}{'location'}{'lng'}
696100
ABdec
000
011
1X1
$l->{'lon'} //= $l->{'geometry'}{'location'}{'lng'}
73567
ABdec
0X0
100
111
defined $rc[0]{'long'} and not defined $rc[0]{'lng'}
73867
ABdec
0X0
100
111
defined $rc[0]{'long'} and not defined $rc[0]{'lon'}
74367
ABdec
0X0
100
111
defined $good_result->{'lat'} and defined $good_result->{'lng'}
823100
ABdec
0X0
100
111
$ua->can("clone") and $ua->can("agent")
826100
Adec
00
11
eval {         do {         $geocoder->VERSION } } // ""
88533
ABdec
000
011
1X1
$params->{'lat'} //= $latitude
88633
ABdec
000
011
1X1
$params->{'lon'} //= $longitude
90067
ABdec
0X0
100
111
exists $geocoder->{'limit'} and defined(my $limit = $geocoder->{'limit'})
97567
ABdec
000
011
1X1
$self->_cache($latlng) // eval {         do {         $geocoder->reverse_geocode(%{$params;}) } }
110450
Adec
00
11
$self->{'log'} // []
1163100
Adec
00
11
$usa->{'usstnumber'} // ""
1173100
Adec
00
11
$loc->{'stnumber'} // ""
123567
ABdec
0X0
100
111
&blessed($item) and ref $item->{'geocoder'}
126033
ABdec
000
011
1X1
$duration //= $self->{'cache_part_duration'}
126667
ABdec
000
011
1X1
$duration //= $self->{'cache_hit_duration'}
129833
ABdec
0X0
100
111
ref $value and ref $value->{'geocoder'}
1325100
ABdec
0X0
100
111
not defined $rc and $self->{'cache'}
1336100
ABdec
0X0
100
111
ref $rc and ref $rc eq "Geo::Coder::List::_NotFound"
134167
ABdec
000
011
1X1
$rc->{'lat'} //= $rc->{'geometry'}{'location'}{'lat'}
134267
ABdec
000
011
1X1
$rc->{'lng'} //= $rc->{'geometry'}{'location'}{'lng'}
134367
ABdec
000
011
1X1
$rc->{'lon'} //= $rc->{'geometry'}{'location'}{'lng'}