Branch Coverage

File:blib/lib/HTML/OSM.pm
Coverage:95.3%

line%coveragebranch
226100TFif (defined $class and not &blessed($class) and not UNIVERSAL::isa($class, __PACKAGE__))
233100TFif (&blessed($class))
367100TFunless defined $lat
438100TFunless (defined $checked)
44050TFif $self->{'logger'}
445100TFif (ref $colour or not $colour =~ /$HEX_COLOUR/)
44750TFif $self->{'logger'}
451100TFunless defined $lat
509100TFunless ref $data
567100TFunless ref $points eq "ARRAY"
616100TFunless $url
687100TFunless ref $features eq "ARRAY"
688100TFunless ref $values eq "HASH"
697100TFif $max == $min
702100TFif $idx > $#{$scale;}
769100TFunless defined $point
773100TFif (ref $point eq 'ARRAY') { }
100TFelsif (ref $point and $point->can('latitude')) { }
100TFelsif (not ref $point) { }
775100TFif scalar @{$point;} != 2
781100TFunless length $point
78550TFif $self->{'logger'}
789100TFunless defined $lat and defined $lon
793100TFunless _validate($lat, $lon)
845100TFif (scalar @_)
85250TFif defined $params->{'zoom'}
978100TFunless (@$coordinates or @$geojson_layers or @$heatmap_layers or @$gpx_tracks or @$choropleth_layers or @$circle_markers)
98150TFif $self->{'logger'}
987100TFif (not defined $zoom && $zoom =~ /\A[0-9]+\z/ or $zoom < $ZOOM_MIN or $zoom > $ZOOM_MAX)
996100TFunless (defined $lat and defined $lon)
998100TFunless defined $label and length $label
100450TFunless defined $lat and defined $lon
1006100TFunless _validate($lat, $lon)
101450TFunless defined $lat and defined $lon
1016100TFunless _validate($lat, $lon)
1018100TFunless defined $colour and not ref $colour and $colour =~ /$HEX_COLOUR/
1024100TFif (defined $max_zoom and !($max_zoom =~ /\A[0-9]+\z/) || $max_zoom > $MAX_ZOOM_LIMIT)
1028100TFdefined $max_zoom ? :
1032100TFif defined $search and $search =~ /\A(?:false|no|off)\z/i
1036100TFif ($self->{'center'}) { }
100TFelsif (@valid_coordinates or @valid_circles) { }
1043100TFif $lat < $min_lat
1044100TFif $lat > $max_lat
1045100TFif $lon < $min_lon
1046100TFif $lon > $max_lon
1064100TFif ($self->{'cluster'})
1071100TFif @$heatmap_layers
1072100TFif @$gpx_tracks
1074100TFif ($search) { }
1095100TFif ($search)
1109100TFif $search
1113100TFif $clustered
1114100TFif (@valid_coordinates)
1119100TFif ($icon_url) { }
100TFelsif ($self->{'cluster'}) { }
1122100TF$self->{'cluster'} ? :
1141100TFdefined $label && length $label ? :
1145100TFif ($self->{'cluster'}) { }
1152100TFif $clustered
1160100TFif (my $style = $opts->{'style'})
1163100TFif (my $prop = $opts->{'popup'})
1221100TFif ($search)
1268100TFif (ref $args[0] eq 'ARRAY') { }
100TFelsif (&blessed($args[0]) and $args[0]->can('latitude')) { }
100TFelsif (defined $args[0] and not ref $args[0] and scalar(@args) % 2 != 0) { }
1272100TFif scalar @{$point;} == 1
1291100TFif (ref $point eq 'ARRAY') { }
100TFelsif (not ref $point) { }
100TFelsif ($point->can('latitude')) { }
1292100TFif scalar @{$point;} != 2
1296100TFunless defined $point and length $point
130250TFif $self->{'logger'}
1306100TFunless defined $lat and defined $lon
1310100TFunless _validate($lat, $lon)
1325100TFunless $location
1328100TFif (my $geocoder = $self->{'geocoder'})
1330100TFunless defined $rc
1332100TFif (&blessed($rc) and $rc->can("latitude"))
1335100TFif (ref $rc eq "HASH")
1337100TFif defined $rc->{'lat'} and defined $rc->{'lon'}
1339100TFif defined $rc->{'geometry'}{'location'}{'lat'}
1342100TFif ref $rc eq "ARRAY"
1351100TFif (my $cached = $self->{'cache'}->get($cache_key))
1357100TFif ($elapsed < $self->{'min_interval'})
1363100TFunless ($ua)
1370100TFif $self->{'email'}
1374100TFif ($response->is_success)
1379100TFif ($@)
1383100TFif ref $data eq "ARRAY"
1384100TFif (ref $data eq "HASH" and defined $data->{'lat'})
1415100TFif not $ok and defined $lat and defined $lon
1419100TF$ok ? :
144150TFif defined $saved_locale
1442100TFunless defined $j
1488100TFunless defined $value and length $value
1489100TFif $value =~ /$CSS_LENGTH/
1506100TFunless defined $value and not ref $value
1511100TFunless $str =~ /\A(?:[0-9]+(?:\.[0-9]+)?|\.[0-9]+)\z/
1514100TFunless $number > 0 and $number < 1000000
1530100TFif not defined $value or ref $value
1535100TFunless $flags & 768
153950TFif defined $radix and length $radix and $radix ne "."
1556100TFunless (defined $sign and length $whole || defined $frac)
1561100TFlength $whole ? :
1562100TFif defined $frac
1563100TF$sign ? :