Branch Coverage

blib/lib/Geo/Distance.pm
Criterion Covered Total %
branch 20 48 41.6


line true false branch
32 4 0 unless ($args{'no_units'})
67 0 2 unless $_[0]
72 0 2 unless $gis_formula
88 0 39 unless $unit_rho
102 0 0 unless $unit = $self->{'units'}{$unit}
104 0 0 if $self->{'formula'} eq 'null'
105 0 0 if $self->{'formula'} eq 'alt'
107 0 0 if ($self->{'formula'} eq 'mt')
120 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') { }
179 0 0 if $iter_limit == 0
200 0 4 unless $dbh->isa('DBI::db')
217 0 4 $args{'where'} ? :
222 0 4 $args{'bind'} ? :
245 32 3 if ($location->{'distance'} <= $distance)
252 1 3 if ($sort)
257 1 3 if ($count and $count < @$locations)
269 64 28 if ($count1 =~ /[^\.0-9]/ or not @_) { }
271 4 88 if (not @_) { }
275 48 40 if ($count2 =~ /[^\.0-9]/ or not @_) { }
277 0 88 if defined $units->{$key1}