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
329 0 0 0 @_ and defined $_[0]
331 0 0 0 defined $x and $x eq $v
333 0 0 0 defined $x and $x eq $v
482 0 0 0 defined $sensors and ref $sensors eq 'ARRAY'
520 0 0 0 $self->opt('v', 0, $opt_hr) and @$aqi_ar
587 0 0 0 $hi{'sensor'} and $n_sensors + $n_values > 3
611 0 0 0 $lo{'sensor'} and $n_sensors + $n_values > $prune_threshold

or 2 conditions

line l !l condition
322 0 0 $alt_hr //= {}
380 0 0 $opt_hr //= {}
490 0 0 $hr->{'results'} // []
634 0 0 $n_values ||= 1

or 3 conditions

line l !l&&r !l&&!r condition
323 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
348 0 0 0 $self->opt('q') or $self->opt('no_errors')
357 0 0 0 $self->opt('q') or $self->opt('no_warnings')
381 0 0 0 $sensor_string // $self->opt('s', $self->opt('sensor', 25407, $opt_hr), $opt_hr)
423 0 0 0 $opt_hr //= $opt_hr
463 0 0 0 $conc > 500 or $conc < 0.05
479 0 0 0 $self->opt('http_or', undef, $opt_hr) // 'HTTP::Tiny'->new
491 0 0 0 $name //= $results_hr->{'Label'}
507 0 0 0 $name //= $sensor
620 0 0 0 not $ppm or abs $ppm - $low_ppm < $low_ppm * $self->opt('prune_threshold', 0.1, $opt_hr)