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
325 0 0 0 @_ and defined $_[0]
327 0 0 0 defined $x and $x eq $v
329 0 0 0 defined $x and $x eq $v
478 0 0 0 defined $sensors and ref $sensors eq 'ARRAY'
508 0 0 0 $self->opt('v', 0, $opt_hr) and @$aqi_ar
574 0 0 0 $hi{'sensor'} and $n_sensors + $n_values > 3
598 0 0 0 $lo{'sensor'} and $n_sensors + $n_values > $prune_threshold

or 2 conditions

line l !l condition
318 0 0 $alt_hr //= {}
376 0 0 $opt_hr //= {}
485 0 0 $hr->{'results'} // []
621 0 0 $n_values ||= 1

or 3 conditions

line l !l&&r !l&&!r condition
319 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
344 0 0 0 $self->opt('q') or $self->opt('no_errors')
353 0 0 0 $self->opt('q') or $self->opt('no_warnings')
377 0 0 0 $sensor_string // $self->opt('s', $self->opt('sensor', 25407, $opt_hr), $opt_hr)
419 0 0 0 $opt_hr //= $opt_hr
459 0 0 0 $conc > 500 or $conc < 0.05
475 0 0 0 $self->opt('http_or', undef, $opt_hr) // 'HTTP::Tiny'->new
486 0 0 0 $name //= $results_hr->{'Label'}
501 0 0 0 $name //= $sensor
607 0 0 0 not $ppm or abs $ppm - $low_ppm < $low_ppm * $self->opt('prune_threshold', 0.1, $opt_hr)