Branch Coverage

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

line%coveragebranch
149100TFif (defined $class and not &blessed($class) and not UNIVERSAL::isa($class, __PACKAGE__))
156100TFif (&blessed($class))
279100TFif (ref $_[0] eq 'ARRAY') { }
100TFelsif (&blessed($_[0]) and $_[0]->can('latitude')) { }
100TFelsif (defined $_[0] and not ref $_[0] and scalar(@_) % 2 != 0) { }
283100TFif scalar @{$point;} == 1
301100TFif (ref $point eq 'ARRAY') { }
100TFelsif (not ref $point) { }
100TFelsif ($point->can('latitude')) { }
302100TFif scalar @{$point;} != 2
31050TFif $self->{'logger'}
314100TFunless defined $lat and defined $lon
315100TFunless _validate($lat, $lon)
373100TFunless ref $data
431100TFunless ref $points eq "ARRAY"
480100TFunless $url
551100TFunless ref $features eq "ARRAY"
552100TFunless ref $values eq "HASH"
561100TFif $max == $min
566100TFif $idx > $#{$scale;}
631100TFunless defined $point
635100TFif (ref $point eq 'ARRAY') { }
100TFelsif (ref $point and $point->can('latitude')) { }
100TFelsif (not ref $point) { }
637100TFif scalar @{$point;} != 2
64550TFif $self->{'logger'}
649100TFunless defined $lat and defined $lon
650100TFunless _validate($lat, $lon)
702100TFif (scalar @_)
70950TFif defined $params->{'zoom'}
809100TFunless (@$coordinates or @$geojson_layers or @$heatmap_layers or @$gpx_tracks or @$choropleth_layers)
81150TFif $self->{'logger'}
819100TFunless (defined $lat and defined $lon)
825100TFunless defined $lat and defined $lon and _validate($lat, $lon)
831100TFif ($self->{'center'}) { }
100TFelsif (@valid_coordinates) { }
836100TFif $c->[0] < $min_lat
837100TFif $c->[0] > $max_lat
838100TFif $c->[1] < $min_lon
839100TFif $c->[1] > $max_lon
853100TFif ($self->{'cluster'})
860100TFif @$heatmap_layers
861100TFif @$gpx_tracks
887100TFif (@valid_coordinates)
888100TFif $self->{'cluster'}
893100TFif ($icon_url) { }
100TFelsif ($self->{'cluster'}) { }
896100TF$self->{'cluster'} ? :
912100TFif $self->{'cluster'}
921100TFif (my $style = $opts->{'style'})
924100TFif (my $prop = $opts->{'popup'})
1022100TFunless $location
1025100TFif (my $geocoder = $self->{'geocoder'})
1027100TFunless defined $rc
1029100TFif (&blessed($rc) and $rc->can("latitude"))
1032100TFif (ref $rc eq "HASH")
1034100TFif defined $rc->{'lat'} and defined $rc->{'lon'}
1036100TFif defined $rc->{'geometry'}{'location'}{'lat'}
1039100TFif ref $rc eq "ARRAY"
1048100TFif (my $cached = $self->{'cache'}->get($cache_key))
1054100TFif ($elapsed < $self->{'min_interval'})
1067100TFif ($response->is_success)
1072100TFif ($@)
1076100TFif ref $data eq "ARRAY"
1077100TFif (ref $data eq "HASH" and defined $data->{'lat'})
1107100TFif not $ok and defined $lat and defined $lon
1111100TF$ok ? :