Branch Coverage

blib/lib/Proc/SafePipe.pm
Criterion Covered Total %
branch 15 20 75.0


line true false branch
57 12 26 unless @_ > 1
59 15 11 if ($type eq 'r') { }
5 6 elsif ($type eq 'w') { }
67 0 20 unless defined $pid
68 5 15 unless ($pid)
70 0 0 unless exec do { $cmd[0] } @cmd
72 4 11 wantarray ? :
88 0 9 unless @_ >= 1
94 0 6 unless close $fh or not $!
95 2 4 wantarray ? :