Condition Coverage

blib/lib/Mojo/IOLoop/ReadWriteFork.pm
Criterion Covered Total %
condition 22 58 37.9


and 2 conditions

line l !l condition
16 23 0 $ENV{'MOJO_READWRITEFORK_DEBUG'} && 1

and 3 conditions

line !l l&&!r l&&r condition
109 1 0 2 &blessed($fh->{'stdin_write'}) && $fh->{'stdin_write'}->isa('IO::Pty') && $fh->{'stdin_write'}
117 0 0 3 ($args->{'stdout'} // 1) && fileno $fh->{'stdout_write'}
118 0 0 3 ($args->{'stderr'} // 1) && fileno($fh->{'stderr_write'} || $fh->{'stdout_write'})
154 10 0 23 &blessed($fh->{'stdout_read'}) and $fh->{'stdout_read'}->isa("IO::Pty")

or 2 conditions

line l !l condition
15 1 22 $ENV{'MOJO_CHUNK_SIZE'} || 131072
69 23 15 $args->{'env'} ||= {%ENV}
88 0 0 $args->{$_} //= 1
175 0 0 shift() // 15

or 3 conditions

line l !l&&r !l&&!r condition
67 0 41 0 $args->{$_} //= $conduit->{$_}
68 2 36 0 $args->{'conduit'} ||= delete $args->{'type'}
114 0 2 0 $fh->{'stdout_write'} ||= $fh->{'stdin_read'}
120 3 0 0 open STDOUT, ">&" . $stdout_no or exit $!
121 3 0 0 open STDERR, ">&" . $stderr_no or exit $!
143 0 0 0 $errno // $!
144 0 0 0 $errno // $!
157 31 1 1 not $fh->{'stderr_read'} or $args->{'stdout'}
182 0 0 0 $! == 11 or $! == 4
0 0 0 $! == 11 or $! == 4 or $! == 11
183 0 0 0 $! == 104 or $! == 32
192 0 33 32 $self->{'wait_eof'} or $self->{'wait_sigchld'}