| line | % | coverage | condition |
| 127 | 33 | | $args{'directory'} || 'Module::Info'->new_from_loaded(__PACKAGE__)->file |
| 138 | 67 | | $args{'cache'} || 'CHI'->new('driver', 'Memory', 'global', 1) |
| 143 | 67 | | $args{'cache'} || 'CHI'->new('driver', 'Memory', 'global', 1) |
| 170 | 0 | | scalar @_ and scalar(@_) % 2 == 0 |
| 219 | 33 | | $location =~ /,/ or $params{"region"} |
| 232 | 0 | | $location =~ /^[\w\s-]+$/ and my $region = $params{"region"} |
| 283 | 0 | | defined $country and $country eq 'UK' || $country eq 'United Kingdom' || $country eq 'England' |
| 293 | 0 | | $admin1cache{$country} and not defined $state |
| 0 | | $state and $admin1cache{$state} |
| 298 | 0 | | $$self{"admin1"} //= "Geo::Coder::Free::DB::MaxMind::admin1"->new("no_entry", 1) |
| 334 | 0 | | $country eq "Canada" and $state and length $state > 2 |
| 335 | 0 | | $county and length $county > 2 |
| 341 | 0 | | $state and length $state > 2 |
| 355 | 0 | | $$self{"admin2"} //= "Geo::Coder::Free::DB::MaxMind::admin2"->new("no_entry", 1) |
| 357 | 0 | | $county and $admin2cache{$county} |
| 0 | | defined $state and $admin2cache{$state} and not defined $county |
| 0 | | defined $county and $county =~ /^[A-Z]{2}$/ and $country =~ /^(United States|USA|US)$/ |
| 0 | | $county and $admin1cache{$county} |
| 371 | 0 | | defined $county and $county eq "London" |
| 384 | 0 | | defined $state and $state =~ /^[A-Z]{2}$/ |
| 399 | 0 | | $state and not defined $region |
| 415 | 0 | | scalar @regions == 0 and not defined $region |
| 420 | 0 | | scalar @admin2s == 0 and $country =~ /^(Canada|United States|USA|US)$/ and not $location =~ /\sCounty/i |
| 425 | 0 | | scalar @admin2s and defined $admin2s[0]{"concatenated_codes"} |
| 459 | 0 | | $$self{'cache'} || 'CHI'->new('driver', 'Memory', 'datastore', {}) |
| 465 | 0 | | defined $county and $county =~ /^[A-Z]{2}$/ and $country =~ /^(United States|USA|US)$/ |
| 597 | 0 | | defined $city and defined $$city{"Latitude"} |
| 599 | 0 | | defined $$city{"Region"} and $$city{"Region"} =~ /^[A-Z]\d$/ |
| 600 | 0 | | defined $$city{"Population"} and length $$city{"Population"} == 0 |
| 626 | 0 | | scalar @_ and scalar(@_) % 2 == 0 |
| 657 | 0 | | $latitude //= $params{"lat"} |
| 658 | 0 | | $longitude //= $params{"lon"} |
| 659 | 0 | | $longitude //= $params{"long"} |
| 662 | 0 | | defined $latitude and defined $longitude |
| 668 | 0 | | $$self{'cache'} || 'CHI'->new('driver', 'Memory', 'datastore', {}) |
| 708 | 0 | | $$self{"admin2"} //= "Geo::Coder::Free::DB::MaxMind::admin2"->new("no_entry", 1) |
| 713 | 0 | | ref $row and $$row{"name"} |