Condition Coverage

blib/lib/Geo/WebService/Elevation/USGS.pm
Criterion Covered Total %
condition 15 38 39.4


and 3 conditions

line !l l&&!r l&&r condition
334 2 1 2 defined $ele && &looks_like_number($ele) && $ele > -1e+300
382 1 3 1 defined $val and not $val =~ / \A \d+ \z /msx
394 0 0 0 &looks_like_number($val) and $val >= 0
410 0 0 0 defined $val and $val =~ / \A \d+ \z /msx
648 0 0 4 defined $rslt->{'Elevation'} and defined($places = $self->get("places"))

or 2 conditions

line l !l condition
148 0 2 $ENV{'GEO_WEBSERVICE_ELEVATION_USGS_URL'} || 'https://epqs.nationalmap.gov/v1/json'

or 3 conditions

line l !l&&r !l&&!r condition
261 4 0 0 not $valid or is_valid($rslt)
365 0 0 9 $clean ||= $clean_transport_object{$name}
398 0 0 0 $using_time_hires or $val >= 1
0 0 0 $using_time_hires or $val >= 1 or $val == 0
453 10 0 0 defined $item or defined($item = $info->{'dflt'}->())
571 3 1 0 $self->{'_json'} ||= "JSON"->new->allow_nonref
574 3 1 0 $self->{'_transport_object'} ||= "LWP::UserAgent"->new("timeout", $self->{'timeout'})