Condition Coverage

blib/lib/Test/MockCommand.pm
Criterion Covered Total %
condition 18 28 64.2


and 3 conditions

line !l l&&!r l&&r condition
37 14 1 3 @_ >= 3 and $_[1] eq 'record'
14 0 1 @_ >= 3 and $_[1] eq 'playback'
154 42 11 27 $func eq 'readpipe' and wantarray

or 2 conditions

line l !l condition
122 25 27 $COMMANDS{"${func}:$cmd"} ||= []
211 3 5 $COMMANDS{$cmd} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
176 0 0 0 $ref || $args->[0]
177 7 0 14 $ref || $args->[0]
178 6 0 1 $ref || $args->[0]
231 2 0 0 shift() || croak('no recorder provided')
239 1 0 0 shift() || croak('no recorder provided')