Condition Coverage

blib/lib/Geo/Distance.pm
Criterion Covered Total %
condition 20 44 45.4


and 3 conditions

line !l l&&!r l&&r condition
357 0 0 0 abs $lambda - $lambda_pi > 1e-12 and --$iter_limit > 0
490 3 0 1 $count and $count < @$locations

or 2 conditions

line l !l condition
441 0 4 $args{'lon_field'} || 'lon'
442 0 4 $args{'lat_field'} || 'lat'
443 0 4 $args{'fields'} || []
447 1 3 $args{'count'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
256 64 0 28 $count1 =~ /[^\.0-9]/ or not @_
262 48 0 40 $count2 =~ /[^\.0-9]/ or not @_
432 4 0 0 $args{'dbh'} || croak('You must supply a database handle')
434 4 0 0 $args{'table'} || croak('You must supply a table name')
435 4 0 0 $args{'lon'} || croak('You must supply a longitude')
436 4 0 0 $args{'lat'} || croak('You must supply a latitude')
437 4 0 0 $args{'distance'} || croak('You must supply a distance')
438 4 0 0 $args{'unit'} || croak('You must specify a unit type')
439 4 0 0 $self->{'units'}{$unit} || croak('This unit type is not known')
448 0 1 3 $args{'sort'} || ($count ? 1 : 0)