blib/lib/Test/MockCommand.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 18 | 28 | 64.2 |
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 |
line | l | !l | condition |
---|---|---|---|
122 | 25 | 27 | $COMMANDS{"${func}:$cmd"} ||= [] |
211 | 3 | 5 | $COMMANDS{$cmd} ||= [] |
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') |