Condition Coverage

lib/Test/Device/SerialPort.pm
Criterion Covered Total %
condition 21 41 51.2


and 3 conditions

line !l l&&!r l&&r condition
239 3 0 0 $^O eq 'MSWin32' and $$self{'_device'} =~ /^COM\d+$/io
300 2 0 3 @_ and $testactive
689 0 2 7 nocarp() and @_ == 1
743 15 0 0 $size and $lenloc < $size
763 1 0 1 $best_pos and $mpos > $best_pos
783 9 1 0 $best_pos and $mpos > $best_pos

or 2 conditions

line l !l condition
181 24 3 shift() || ''
254 2 0 shift() || 1
261 2 0 shift() || 1
275 2 0 shift() || 1
282 2 0 shift() || 1
289 2 0 shift() || 1
302 2 1 shift() || 0

or 3 conditions

line l !l&&r !l&&!r condition
9 0 0 3 $^O eq 'MSWin32' or $^O eq 'cygwin'
210 0 3 0 ref $ref || $ref
367 0 0 0 ref $proto || $proto