Branch Coverage

blib/lib/Test/MockCommand/ScalarReadline.pm
Criterion Covered Total %
branch 24 26 92.3


line true false branch
12 0 130 unless wantarray or @_ > 1
15 11 119 if (not defined $_[0] or $_[0] eq '')
16 0 11 if wantarray
22 2 117 unless (defined $/)
23 1 1 if wantarray
29 87 30 if (ref $/ eq 'SCALAR' and ${$/;} > 0)
31 83 4 unless (wantarray)
49 4 26 if ($rs eq '')
55 24 6 unless (wantarray)
57 5 19 if ($found < 0) { }
63 2 17 if ($paras)
74 2 17 if ($paras)
77 5 1 if $pos < length $_[0]