Branch Coverage

blib/lib/Proc/Hevy/Reader.pm
Criterion Covered Total %
branch 26 36 72.2


line true false branch
16 106 28 if defined $buffer and ref $buffer ne 'GLOB'
27 32 8 if (defined $$self{'pipe'}) { }
0 8 elsif (ref $$self{'buffer'} eq 'GLOB') { }
34 0 8 unless open $handle, '>', '/dev/null'
40 40 0 if $std_h != $handle
48 20 74 unless (defined $$self{'pipe'})
49 0 20 if defined $$self{'buffer'}
72 0 116 if (not defined $rc) { }
74 42 elsif ($rc == 0) { }
73 0 0 if ($! != 11)
82 0 74 unless $handle->close
93 14 28 if (ref $$self{'buffer'} eq 'SCALAR') { }
97 0 28 defined $$self{'scratch'} ? :
99 26 2 if (defined $/)
106 4 24 length $scratch ? :
114 70 56 unless defined $data
118 38 18 if (ref $buffer eq 'ARRAY') { }
18 0 elsif (ref $buffer eq 'CODE') { }