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
354 0 0 0 abs $lambda - $lambda_pi > 1e-12 and --$iter_limit > 0
487 3 0 1 $count and $count < @$locations

or 2 conditions

line l !l condition
438 0 4 $args{'lon_field'} || 'lon'
439 0 4 $args{'lat_field'} || 'lat'
440 0 4 $args{'fields'} || []
444 1 3 $args{'count'} || 0

or 3 conditions

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