| line | % | coverage | condition |
| 137 | 33 | | $$args{'directory'} || 'Module::Info'->new_from_loaded(__PACKAGE__)->file |
| 148 | 67 | | $$args{'cache'} || 'CHI'->new('driver', 'Memory', 'global', 1) |
| 153 | 67 | | $$args{'cache'} || 'CHI'->new('driver', 'Memory', 'global', 1) |
| 180 | 0 | | scalar @_ and scalar(@_) % 2 == 0 |
| 228 | 33 | | $location =~ /,/ or $params{"region"} |
| 241 | 0 | | $location =~ /^[\w\s-]+$/ and my $region = $params{"region"} |
| 291 | 0 | | defined $country and $country eq 'UK' || $country eq 'United Kingdom' || $country eq 'England' |
| 299 | 0 | | $admin1cache{$country} and not defined $state |
| 0 | | $state and $admin1cache{$state} |
| 304 | 0 | | $$self{"admin1"} //= "Geo::Coder::Free::DB::MaxMind::admin1"->new("no_entry", 1) |
| 338 | 0 | | $country eq "Canada" and $state and length $state > 2 |
| 339 | 0 | | $county and length $county > 2 |
| 340 | 0 | | $_locale_us //= "Locale::US"->new |
| 344 | 0 | | $state and length $state > 2 |
| 345 | 0 | | $_locale_us //= "Locale::US"->new |
| 350 | 0 | | $_locale_ca //= "Locale::CA"->new |
| 356 | 0 | | $$self{"admin2"} //= "Geo::Coder::Free::DB::MaxMind::admin2"->new("no_entry", 1) |
| 358 | 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} |
| 368 | 0 | | defined $county and $county eq "London" |
| 378 | 0 | | defined $state and $state =~ /^[A-Z]{2}$/ |
| 393 | 0 | | $state and not defined $region |
| 409 | 0 | | scalar @regions == 0 and not defined $region |
| 413 | 0 | | scalar @admin2s == 0 and $country =~ /^(Canada|United States|USA|US)$/ and not $location =~ /\sCounty/i |
| 417 | 0 | | scalar @admin2s and defined $admin2s[0]{"concatenated_codes"} |
| 449 | 0 | | $$self{'cache'} || 'CHI'->new('driver', 'Memory', 'datastore', {}) |
| 455 | 0 | | defined $county and $county =~ /^[A-Z]{2}$/ and $country =~ /^(United States|USA|US)$/ |
| 577 | 0 | | defined $city and defined $$city{"Latitude"} |
| 579 | 0 | | defined $$city{"Region"} and $$city{"Region"} =~ /^[A-Z]\d$/ |
| 580 | 0 | | defined $$city{"Population"} and length $$city{"Population"} == 0 |
| 606 | 0 | | scalar @_ and scalar(@_) % 2 == 0 |
| 637 | 0 | | $latitude //= $params{"lat"} |
| 638 | 0 | | $longitude //= $params{"lon"} |
| 639 | 0 | | $longitude //= $params{"long"} |
| 642 | 0 | | defined $latitude and defined $longitude |
| 648 | 0 | | $$self{'cache'} || 'CHI'->new('driver', 'Memory', 'datastore', {}) |
| 656 | 0 | | defined $c and $c =~ /^-?\d+\.?\d*$/ |
| 697 | 0 | | $$self{"admin2"} //= "Geo::Coder::Free::DB::MaxMind::admin2"->new("no_entry", 1) |
| 703 | 0 | | $$loc{"Country"} // "" |
| 704 | 0 | | $region // "" |
| 706 | 0 | | $_country =~ /^[A-Z]{2}$/ and $_reg =~ /^[A-Z0-9]{1,10}$/ |
| 709 | 0 | | ref $row and $$row{"name"} |