Condition Coverage

blib/lib/Device/Plugwise.pm
Criterion Covered Total %
condition 7 21 33.3


and 3 conditions

line !l l&&!r l&&r condition
55 1 0 0 $msg ne 'connected' and not exists $p{'filehandle'}
155 0 0 1 defined $res and not $$self{'_awaiting_stick_response'}
203 3 0 3 $wait_rec and $$wait_rec[1]
611 0 2 0 defined $command and defined $target

or 3 conditions

line l !l&&r !l&&!r condition
55 0 0 1 not defined $msg or $msg ne 'connected' and not exists $p{'filehandle'}
125 0 0 0 tie(*$fh, 'Device::SerialPort', $$self{'device'}) || croak("Could not tie serial port to file handle: $!\n")
178 0 0 3 $no_write or $$self{'_awaiting_stick_response'}