Condition Coverage

lib/Weather/PurpleAir/API.pm
Criterion Covered Total %
condition 0 65 0.0


and 3 conditions

line !l l&&!r l&&r condition
331 0 0 0 @_ and defined $_[0]
333 0 0 0 defined $x and $x eq $v
335 0 0 0 defined $x and $x eq $v
484 0 0 0 defined $sensors and ref $sensors eq "ARRAY"
522 0 0 0 $self->opt("v", 0, $opt_hr) and @$aqi_ar
589 0 0 0 $hi{'sensor'} and $n_sensors + $n_values > 3
613 0 0 0 $lo{'sensor'} and $n_sensors + $n_values > $prune_threshold

or 2 conditions

line l !l condition
324 0 0 $alt_hr //= {}
382 0 0 $opt_hr //= {}
492 0 0 $hr->{'results'} // []
636 0 0 $n_values ||= 1

or 3 conditions

line l !l&&r !l&&!r condition
325 0 0 0 $self->{'opt_hr'}{$name} // $self->{'conf_hr'}{$name}
0 0 0 ($self->{'opt_hr'}{$name} // $self->{'conf_hr'}{$name}) // $alt_hr->{$name}
0 0 0 (($self->{'opt_hr'}{$name} // $self->{'conf_hr'}{$name}) // $alt_hr->{$name}) // $default_value
350 0 0 0 $self->opt("q") or $self->opt("no_errors")
359 0 0 0 $self->opt("q") or $self->opt("no_warnings")
383 0 0 0 $sensor_string // $self->opt("s", $self->opt("sensor", 25407, $opt_hr), $opt_hr)
425 0 0 0 $opt_hr //= $opt_hr
465 0 0 0 $conc > 500 or $conc < "0.05"
481 0 0 0 $self->opt("http_or", undef, $opt_hr) // "HTTP::Tiny"->new
493 0 0 0 $name //= $results_hr->{'Label'}
509 0 0 0 $name //= $sensor
622 0 0 0 not $ppm or abs $ppm - $low_ppm < $low_ppm * $self->opt("prune_threshold", "0.1", $opt_hr)