Branch Coverage

blib/lib/IPC/PrettyPipe/Stream.pm
Criterion Covered Total %
branch 11 34 32.3


line true false branch
92 3 153 if (@_ == 1)
94 0 3 if 'HASH' eq ref $_[0]
97 0 3 if 'ARRAY' eq ref $_[0] and @{$_[0];} == 2
117 112 44 unless defined $opc->{'type'}
126 2 42 if ($self->strict)
128 2 0 if $self->requires_file and not $self->has_file
132 0 0 if not $self->requires_file and $self->has_file
151 4 0 if (defined $N) { }
156 0 4 unless open $N, $op, $file
167 0 0 unless my $nfd = POSIX::open($file, $op, 420)
169 0 0 unless POSIX::dup2($nfd, $N)
188 0 0 if (defined $N) { }
191 0 0 unless open $N, '>&', $M
203 0 0 unless POSIX::dup2($N, $M)
228 0 0 if (defined $N) { }
230 0 0 unless close $N
239 0 0 unless POSIX::close($N)