| line | % | coverage | condition |
| 152 | 67 | | Database::BI::I18N::text(__PACKAGE__, \%MESSAGES, $key) // q[Internal error: unknown message key '] . ($key // "undef") . q['] |
| 100 | | $key // "undef" |
| 608 | 100 | | Params::Get::get_params(undef, \@_) // {} |
| 631 | 67 | | &blessed($cache) and not $cache->can('get') && $cache->can('set') |
| 33 | | $cache->can('get') && $cache->can('set') |
| 646 | 67 | | defined $args->{'model_dir'} && length $args->{'model_dir'} |
| 654 | 100 | | defined $online_max and not $online_max =~ /\A\d+\z/ && $online_max > 0 |
| 67 | | $online_max =~ /\A\d+\z/ && $online_max > 0 |
| 661 | 100 | | $args->{'openaddr'} // $ENV{'OPENADDR_HOME'} |
| 751 | 33 | | $self->{'cache'} // _default_cache() |
| 777 | 67 | | $default_cache //= "CHI"->new("driver", "Memory", "global", 1, "namespace", $CACHE_NAMESPACE, "max_size", $CACHE_MAX_SIZE) |
| 802 | 33 | | $ok and nominatim_ua() |
| 892 | 100 | | ref $point and ref $point ne "ARRAY" |
| 894 | 50 | | &blessed($point) and $point->can("latitude") and $point->can("longitude") |
| 899 | 100 | | ($point->{'long'} // $point->{'lng'}) // $point->{'lon'} |
| 100 | | $point->{'long'} // $point->{'lng'} |
| 915 | 100 | | ref $point and ref $point ne "ARRAY" |
| 918 | 67 | | &blessed($point) && $point->can($key) |
| 920 | 67 | | defined $value and $value eq "cache" |
| 921 | 50 | | defined $value and length $value and not ref $value |
| 934 | 100 | | ref $entry eq "ARRAY" and @{$entry;} >= 2 |
| 936 | 100 | | defined $entry->[0] && defined $entry->[1] |
| 954 | 100 | | $opts->{'cache'} // {} |
| 965 | 50 | | $values // [] |
| 966 | 100 | | defined $value && !ref($value) |
| 972 | 100 | | not defined $value or ref $value or not length $key |
| 1035 | 100 | | $opts->{'lookup'} // 1 |
| 1063 | 33 | | $lookup->{'spent'} and @{$lookup->{'held'};} |
| 1069 | 67 | | defined $lat and defined $lon |
| 1103 | 50 | | $self->{'_unavailable_key'} // "error_map_geocoder_missing" |
| 1110 | 33 | | defined $lookup->{'failed'} and @{$lookup->{'held'};} |
| 1115 | 75 | | @attempt and not $self->{'openaddr'} and not $self->{'_online'} |
| 1118 | 67 | | $unresolved and $self->{'_online_missing'} |
| 1167 | 100 | | ref $batch eq 'HASH' && defined $batch->{'lookups'} |
| 1192 | 50 | | $chain->log // [] |
| 1194 | 50 | | $_->{'geocoder'} // "" |
| 1196 | 100 | | not $point and grep {defined $_->{'error'};} @log |
| 1241 | 100 | | defined $failed or defined $budget and $asked >= $budget |
| 1250 | 50 | | $chain->log // [] |
| 1252 | 50 | | $_->{'geocoder'} // "" |
| 1254 | 50 | | $_->{'geocoder'} // "" |
| 1261 | 100 | | not $point and defined $thrown || !$response || !$response->is_success |
| 1273 | 67 | | not $point and grep {($_->{'geocoder'} // "") ne $class if defined $_->{'error'};} @log |
| 0 | | $_->{'geocoder'} // "" |
| 1290 | 67 | | defined $lat and defined $lon |
| 1299 | 67 | | !defined($failed) && @rest |
| 1331 | 100 | | $args->{'max'} =~ /\A\d+\z/ and $args->{'max'} > 0 |
| 1426 | 67 | | ref $values || $values |
| 1429 | 100 | | Params::Get::get_params(undef, \@_) // {} |
| 1445 | 33 | | ref $rows || $rows |
| 1448 | 100 | | defined $column and length $column |
| 1450 | 100 | | Params::Get::get_params(undef, \@_) // {} |
| 1468 | 100 | | @{$rows;} and not $found |
| 1477 | 100 | | defined $cells[$index] && !ref($cells[$index]) |
| 1509 | 67 | | defined $value && !ref($value) |
| 1573 | 100 | | $self->{'_unavailable_key'} // "" |
| 1577 | 50 | | $self->{'_unavailable'} // "it is not installed" |
| 1618 | 100 | | defined $dir and not ref $dir and -d $dir |
| 1700 | 33 | | ref $rows || $rows |
| 1703 | 100 | | defined $_ and not ref $_ |
| 1708 | 67 | | defined $text && !ref($text) |
| 1709 | 100 | | @columns == 1 and not length $text |
| 1716 | 100 | | defined $cell && !ref($cell) |
| 1719 | 100 | | defined $place and length $place and length $text |
| 1761 | 100 | | ref $value or $value =~ /[\x00-\x1f\x7f]/ |
| 1812 | 67 | | ref $entry eq "HASH" and ref $entry->{'places'} eq "HASH" |
| 1880 | 100 | | $models->{'geo'}{$spec_key} // {} |
| 1882 | 50 | | $cache // {} |
| 1890 | 100 | | $updated{'geo'} // {} |
| 1941 | 100 | | ref $entry eq "HASH" and ref $entry->{'places'} eq "HASH" |
| 2014 | 100 | | ref $models eq 'HASH' && ref $models->{'geo'} eq 'HASH' |