Branch Coverage

lib/IPC/Open3/Simple.pm
Criterion Covered Total %
branch 18 20 90.0


line true false branch
36 7 10 if (exists $args{$type})
37 1 6 if ref $args{$type} ne 'CODE'
61 0 7 unless my $pid = open3(\*CHILD_IN, \*CHILD_OUT, \*CHILD_ERR, @args)
74 3 4 if (exists $$self{'out'}) { }
80 3 4 if (exists $$self{'err'}) { }
87 3 4 if (exists $$self{'in'}) { }
94 4 3 if ($reader->handles)
98 6 8 if (not defined $line) { }
104 4 4 if ($child_out->opened and fileno $fh == fileno \*CHILD_OUT) { }
4 0 elsif ($child_err->opened and fileno $fh == fileno \*CHILD_ERR) { }