| line | % | coverage | condition |
| 161 | 33 | | $$args{'directory'} || 'Module::Info'->new_from_loaded(__PACKAGE__)->file |
| 172 | 67 | | $$args{'cache'} || 'CHI'->new('driver', 'Memory', 'global', 1) |
| 179 | 67 | | $$args{'cache'} || 'CHI'->new('driver', 'Memory', 'global', 1) |
| 212 | 100 | | $$self{"reads"} // 0 |
| 273 | 33 | | scalar @_ and scalar(@_) % 2 == 0 |
| 327 | 67 | | $location =~ /,/ or $params{"region"} |
| 337 | 50 | | $$self{"directory"} // "" |
| 338 | 50 | | $params{"region"} // "" |
| 348 | 0 | | $location =~ /^[\w\s-]+$/ and my $region = $params{"region"} |
| 400 | 25 | | defined $country and $country eq 'UK' || $country eq 'United Kingdom' || $country eq 'England' |
| 408 | 33 | | $admin1cache{$country} and not defined $state |
| 33 | | $state and $admin1cache{$state} |
| 413 | 33 | | $$self{"admin1"} //= "Geo::Coder::Free::DB::MaxMind::admin1"->new("no_entry", 1) |
| 452 | 25 | | $country eq "Canada" and $state and length $state > 2 |
| 453 | 0 | | $county and length $county > 2 |
| 454 | 0 | | $_locale_us //= "Locale::US"->new |
| 458 | 0 | | $state and length $state > 2 |
| 459 | 0 | | $_locale_us //= "Locale::US"->new |
| 464 | 0 | | $_locale_ca //= "Locale::CA"->new |
| 473 | 33 | | $$self{"admin2"} //= "Geo::Coder::Free::DB::MaxMind::admin2"->new("no_entry", 1) |
| 475 | 33 | | $county and $admin2cache{$county} |
| 25 | | defined $state and $admin2cache{$state} and not defined $county |
| 25 | | defined $county and $county =~ /^[A-Z]{2}$/ and $country =~ /^(United States|USA|US)$/ |
| 33 | | $county and $admin1cache{$county} |
| 485 | 33 | | defined $county and $county eq "London" |
| 497 | 0 | | defined $state and $state =~ /^[A-Z]{2}$/ |
| 512 | 33 | | $state and not defined $region |
| 529 | 33 | | scalar @regions == 0 and not defined $region |
| 534 | 25 | | scalar @admin2s == 0 and $country =~ /^(Canada|United States|USA|US)$/ and not $location =~ /\sCounty/i |
| 539 | 33 | | scalar @admin2s and defined $admin2s[0]{"concatenated_codes"} |
| 572 | 0 | | $$self{'cache'} || 'CHI'->new('driver', 'Memory', 'datastore', {}) |
| 578 | 25 | | defined $county and $county =~ /^[A-Z]{2}$/ and $country =~ /^(United States|USA|US)$/ |
| 702 | 33 | | defined $city and defined $$city{"Latitude"} |
| 704 | 33 | | defined $$city{"Region"} and $$city{"Region"} =~ /^[A-Z]\d$/ |
| 705 | 33 | | defined $$city{"Population"} and length $$city{"Population"} == 0 |
| 757 | 0 | | scalar @_ and scalar(@_) % 2 == 0 |
| 788 | 0 | | $latitude //= $params{"lat"} |
| 789 | 0 | | $longitude //= $params{"lon"} |
| 790 | 0 | | $longitude //= $params{"long"} |
| 793 | 0 | | defined $latitude and defined $longitude |
| 799 | 0 | | $$self{'cache'} || 'CHI'->new('driver', 'Memory', 'datastore', {}) |
| 807 | 0 | | defined $c and $c =~ /^-?\d+\.?\d*$/ |
| 850 | 0 | | $$self{"admin2"} //= "Geo::Coder::Free::DB::MaxMind::admin2"->new("no_entry", 1) |
| 856 | 0 | | $$loc{"Country"} // "" |
| 857 | 0 | | $region // "" |
| 859 | 0 | | $_country =~ /^[A-Z]{2}$/ and $_reg =~ /^[A-Z0-9]{1,10}$/ |
| 863 | 0 | | ref $row and $$row{"name"} |