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}
309100
ABdec
000
011
1X1
not defined $location or length $location == 0
39233
ABdec
0X0
100
111
ref $stored and ref $stored eq "Geo::Coder::List::_NotFound"
40667
ABdec
0X0
100
111
exists $geocoder->{'limit'} and defined(my $limit = $geocoder->{'limit'})
46267
ABdec
0X0
100
111
ref $geocoder eq "Geo::Coder::US::Census" and not defined $rc[0]{'result'}{'addressMatches'}[0]{'coordinates'}{'y'}
477100
ABCdec
00X0
0100
0111
1XX1
scalar @rc == 0 or ref $rc[0] eq "HASH" and scalar keys %{$rc[0];} == 0 or 0
511100
ABdec
000
011
1X1
not defined $l or $l eq ""
54167
ABdec
0X0
100
111
not defined $l->{'geometry'}{'location'}{'lat'} and defined $l->{'lat'}
54333
ABdec
000
011
1X1
$l->{'lng'} // $l->{'lon'}
54767
ABdec
000
011
1X1
$l->{'lat'} //= $l->{'geometry'}{'location'}{'lat'}
54867
ABdec
000
011
1X1
$l->{'lng'} //= $l->{'geometry'}{'location'}{'lng'}
54933
ABdec
000
011
1X1
$l->{'lon'} //= $l->{'geometry'}{'location'}{'lng'}
583100
ABdec
0X0
100
111
defined $l->{'lat'} and defined $l->{'lon'}
66367
ABdec
0X0
100
111
defined $lat and defined $long
69067
ABdec
000
011
1X1
$l->{'lat'} //= $l->{'geometry'}{'location'}{'lat'}
691100
ABdec
000
011
1X1
$l->{'lng'} //= $l->{'geometry'}{'location'}{'lng'}
692100
ABdec
000
011
1X1
$l->{'lon'} //= $l->{'geometry'}{'location'}{'lng'}
73167
ABdec
0X0
100
111
defined $rc[0]{'long'} and not defined $rc[0]{'lng'}
73467
ABdec
0X0
100
111
defined $rc[0]{'long'} and not defined $rc[0]{'lon'}
73967
ABdec
0X0
100
111
defined $good_result->{'lat'} and defined $good_result->{'lng'}
819100
ABdec
0X0
100
111
$ua->can("clone") and $ua->can("agent")
822100
Adec
00
11
eval {         do {         $geocoder->VERSION } } // ""
88133
ABdec
000
011
1X1
$params->{'lat'} //= $latitude
88233
ABdec
000
011
1X1
$params->{'lon'} //= $longitude
89667
ABdec
0X0
100
111
exists $geocoder->{'limit'} and defined(my $limit = $geocoder->{'limit'})
97167
ABdec
000
011
1X1
$self->_cache($latlng) // eval {         do {         $geocoder->reverse_geocode(%{$params;}) } }
110050
Adec
00
11
$self->{'log'} // []
1159100
Adec
00
11
$usa->{'usstnumber'} // ""
1169100
Adec
00
11
$loc->{'stnumber'} // ""
123167
ABdec
0X0
100
111
&blessed($item) and ref $item->{'geocoder'}
125633
ABdec
000
011
1X1
$duration //= $self->{'cache_part_duration'}
126267
ABdec
000
011
1X1
$duration //= $self->{'cache_hit_duration'}
129433
ABdec
0X0
100
111
ref $value and ref $value->{'geocoder'}
1321100
ABdec
0X0
100
111
not defined $rc and $self->{'cache'}
1332100
ABdec
0X0
100
111
ref $rc and ref $rc eq "Geo::Coder::List::_NotFound"
133767
ABdec
000
011
1X1
$rc->{'lat'} //= $rc->{'geometry'}{'location'}{'lat'}
133867
ABdec
000
011
1X1
$rc->{'lng'} //= $rc->{'geometry'}{'location'}{'lng'}
133967
ABdec
000
011
1X1
$rc->{'lon'} //= $rc->{'geometry'}{'location'}{'lng'}