Branch Coverage

blib/lib/Geo/Distance.pm
Criterion Covered Total %
branch 20 46 43.4


line true false branch
147 4 0 unless ($args{'no_units'})
195 0 2 unless $_[0]
200 0 2 unless $gis_formula
253 64 28 if ($count1 =~ /[^\.0-9]/ or not @_) { }
255 4 88 if (not @_) { }
259 48 40 if ($count2 =~ /[^\.0-9]/ or not @_) { }
261 0 88 if defined $units->{$key1}
278 0 39 unless $unit_rho
292 0 0 unless $unit = $self->{'units'}{$unit}
294 0 0 if $self->{'formula'} eq 'null'
296 0 0 if ($self->{'formula'} eq 'mt')
309 0 0 if ($self->{'formula'} eq 'cos') { }
0 0 elsif ($self->{'formula'} eq 'hsin') { }
0 0 elsif ($self->{'formula'} eq 'polar') { }
0 0 elsif ($self->{'formula'} eq 'gcd') { }
0 0 elsif ($self->{'formula'} eq 'tv') { }
368 0 0 if $iter_limit == 0
430 0 4 unless $dbh->isa('DBI::db')
447 0 4 $args{'where'} ? :
452 0 4 $args{'bind'} ? :
475 32 3 if ($location->{'distance'} <= $distance)
482 1 3 if ($sort)
487 1 3 if ($count and $count < @$locations)