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

or 2 conditions

line l !l condition
208 0 4 $args{'lon_field'} || 'lon'
209 0 4 $args{'lat_field'} || 'lat'
210 0 4 $args{'fields'} || []
214 1 3 $args{'count'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
199 4 0 0 $args{'dbh'} || croak('You must supply a database handle')
201 4 0 0 $args{'table'} || croak('You must supply a table name')
202 4 0 0 $args{'lon'} || croak('You must supply a longitude')
203 4 0 0 $args{'lat'} || croak('You must supply a latitude')
204 4 0 0 $args{'distance'} || croak('You must supply a distance')
205 4 0 0 $args{'unit'} || croak('You must specify a unit type')
206 4 0 0 $self->{'units'}{$unit} || croak('This unit type is not known')
215 0 1 3 $args{'sort'} || ($count ? 1 : 0)
269 64 0 28 $count1 =~ /[^\.0-9]/ or not @_
275 48 0 40 $count2 =~ /[^\.0-9]/ or not @_