Branch Coverage

blib/lib/IO/Pipe.pm
Criterion Covered Total %
branch 32 58 55.1


line true false branch
21 0 8 unless @_ == 0 or @_ == 2
25 0 8 @_ ? :
27 0 8 unless pipe $readfh, $writefh
36 0 8 unless @_ == 1
46 0 5 $do_spawn ? :
48 3 2 if ($pid) { }
2 0 elsif (defined $pid) { }
53 1 1 $rw ? :
54 1 1 $rw ? :
55 0 2 if ($do_spawn) { }
60 0 0 unless ($^O eq "MSWin32")
61 0 0 unless fcntl $handle, 2, 1
63 0 0 $rw ? :
66 1 1 $rw ? :
72 0 2 if ($do_spawn) { }
77 0 0 unless $save->close
78 0 0 if not $pid or $pid < 0
81 0 0 unless exec @_
93 0 5 unless @_ >= 1
97 0 5 unless ref $me or ref($me = $me->new)
101 3 2 if @_
107 0 4 unless defined $me->fileno
110 2 2 if defined $pid
117 0 5 unless @_ >= 1
121 0 5 unless ref $me or ref($me = $me->new)
125 2 3 if @_
131 0 4 unless defined $me->fileno
134 1 3 if defined $pid
151 3 5 if defined do { *$fh }->{'io_pipe_pid'}