| line | % | coverage | condition |
| 226 | 100 | | defined $class and not &blessed($class) and not UNIVERSAL::isa($class, __PACKAGE__) |
| 234 | 100 | | Params::Get::get_params(undef, \@_) || {} |
| 238 | 100 | | $class //= __PACKAGE__ |
| 240 | 100 | | Params::Get::get_params(undef, \@_) || {} |
| 274 | 67 | | $params->{'cache'} //= "CHI"->new("driver", "Memory", "global", 1, "expires_in", "1 day") |
| 436 | 67 | | $params->{'radius'} // $DEFAULT_CIRCLE_RADIUS |
| 444 | 67 | | $params->{'colour'} // $DEFAULT_CIRCLE_COLOUR |
| 445 | 100 | | ref $colour or not $colour =~ /$HEX_COLOUR/ |
| 506 | 100 | | Params::Get::get_params(undef, \@_) || {} |
| 565 | 100 | | Params::Get::get_params(undef, \@_) || {} |
| 685 | 100 | | Params::Get::get_params(undef, \@_) || {} |
| 690 | 100 | | $params->{'key'} || 'name' |
| 691 | 100 | | $params->{'scale'} || ['#ffffcc', '#a1dab4', '#41b6c4', '#2c7fb8', '#253494'] |
| 696 | 100 | | $sorted_vals[-1] // 0 |
| 100 | | $sorted_vals[0] // 0 |
| 773 | 100 | | ref $point and $point->can("latitude") |
| 789 | 67 | | defined $lat and defined $lon |
| 971 | 50 | | $self->{'coordinates'} || [] |
| 972 | 100 | | $self->{'geojson'} || [] |
| 973 | 100 | | $self->{'heatmap_layers'} || [] |
| 974 | 100 | | $self->{'gpx_tracks'} || [] |
| 975 | 100 | | $self->{'choropleth_layers'} || [] |
| 976 | 100 | | $self->{'circle_markers'} || [] |
| 978 | 86 | | A | B | C | D | E | F | dec |
|---|
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | | 0 | 0 | 0 | 0 | 0 | 1 | 1 | | 0 | 0 | 0 | 0 | 1 | X | 1 | | 0 | 0 | 0 | 1 | X | X | 1 | | 0 | 0 | 1 | X | X | X | 1 | | 0 | 1 | X | X | X | X | 1 | | 1 | X | X | X | X | X | 1 |
| @$coordinates or @$geojson_layers or @$heatmap_layers or @$gpx_tracks or @$choropleth_layers or @$circle_markers |
| 987 | 67 | | defined $zoom && $zoom =~ /\A[0-9]+\z/ |
| 75 | | not defined $zoom && $zoom =~ /\A[0-9]+\z/ or $zoom < $ZOOM_MIN or $zoom > $ZOOM_MAX |
| 988 | 50 | | $zoom // "undef" |
| 996 | 67 | | defined $lat and defined $lon |
| 998 | 67 | | defined $label and length $label |
| 1004 | 33 | | defined $lat and defined $lon |
| 1014 | 33 | | defined $lat and defined $lon |
| 1018 | 50 | | defined $colour and not ref $colour and $colour =~ /$HEX_COLOUR/ |
| 1024 | 100 | | defined $max_zoom and !($max_zoom =~ /\A[0-9]+\z/) || $max_zoom > $MAX_ZOOM_LIMIT |
| 1032 | 67 | | defined $search and $search =~ /\A(?:false|no|off)\z/i |
| 1036 | 100 | | @valid_coordinates or @valid_circles |
| 1112 | 67 | | $self->{'cluster'} && (@valid_coordinates || @valid_circles) |
| 1141 | 67 | | defined $label && length $label |
| 1157 | 50 | | $layer->{'opts'} || {} |
| 1173 | 50 | | $layer->{'opts'} || {} |
| 1268 | 100 | | &blessed($args[0]) and $args[0]->can("latitude") |
| 100 | | defined $args[0] and not ref $args[0] and scalar(@args) % 2 != 0 |
| 1270 | 100 | | Params::Get::get_params(undef, \@args) || {} |
| 1277 | 100 | | Params::Get::get_params(undef, \@args) || {} |
| 1282 | 100 | | Params::Get::get_params(undef, \@args) || {} |
| 1287 | 50 | | $params ||= {} |
| 1296 | 100 | | defined $point and length $point |
| 1306 | 67 | | defined $lat and defined $lon |
| 1332 | 100 | | &blessed($rc) and $rc->can("latitude") |
| 1337 | 100 | | defined $rc->{'lat'} and defined $rc->{'lon'} |
| 1384 | 67 | | ref $data eq "HASH" and defined $data->{'lat'} |
| 1410 | 100 | | defined $lat && defined $lon && $lat =~ /$numeric/ && $lon =~ /$numeric/ && _num_val($lat) >= $LAT_MIN && _num_val($lat) <= $LAT_MAX && _num_val($lon) >= $LON_MIN && _num_val($lon) <= $LON_MAX |
| 1415 | 50 | | $lon // "undef" |
| 100 | | not $ok and defined $lat and defined $lon |
| 50 | | $lat // "undef" |
| 1455 | 100 | | shift() // "" |
| 1470 | 100 | | shift() // "" |
| 1488 | 100 | | defined $value and length $value |
| 1506 | 100 | | defined $value and not ref $value |
| 1514 | 100 | | $number > 0 and $number < 1000000 |
| 1530 | 100 | | not defined $value or ref $value |
| 1538 | 50 | | localeconv() || {} |
| 1539 | 25 | | defined $radix and length $radix and $radix ne "." |
| 1556 | 100 | | defined $sign and length $whole || defined $frac |