Condition Coverage

blib/lib/App/Device/Chip/sensor.pm
Criterion Covered Total %
condition 10 18 55.5


and 3 conditions

line !l l&&!r l&&r condition
375 2 0 1 @$readings == 3 and &all(sub { ; } , @$readings)

or 2 conditions

line l !l condition
370 2 1 $readings_by_sensor{&refaddr($sensor)} //= []
415 0 1 $units // ""
418 0 1 $units // ""

or 3 conditions

line l !l&&r !l&&!r condition
158 1 9 0 $adapter //= "Device::Chip::Adapter"->new_from_description($ADAPTERDESC)
218 10 0 0 $config{'type'} // croak("Require 'type'")
219 10 0 0 $config{'adapter'} // croak("Require 'adapter'")