Condition Coverage

blib/lib/Mojo/IOLoop/ReadWriteFork.pm
Criterion Covered Total %
condition 31 65 47.6


and 2 conditions

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

and 3 conditions

line !l l&&!r l&&r condition
33 4 0 2 &blessed($fh) and $fh->isa("IO::Pty")
35 1 0 3 $self->{'stream'}{$name} && $self->ioloop->stream($self->{'stream'}{$name})
36 1 1 2 $stream and $stream->handle eq $fh
120 2 0 2 &blessed($fh->{'stdin_write'}) && $fh->{'stdin_write'}->isa('IO::Pty') && $fh->{'stdin_write'}
128 0 0 4 ($args->{'stdout'} // 1) && fileno $fh->{'stdout_write'}
129 0 0 4 ($args->{'stderr'} // 1) && fileno($fh->{'stderr_write'} || $fh->{'stdout_write'})
165 11 0 25 &blessed($fh->{'stdin_write'}) and $fh->{'stdin_write'}->isa("IO::Pty")

or 2 conditions

line l !l condition
15 1 25 $ENV{'MOJO_CHUNK_SIZE'} || 131072
80 23 19 $args->{'env'} ||= {%ENV}
99 0 3 $args->{$_} //= 1
131 4 0 open STDOUT, ">&" . $stdout_no or die $!
132 4 0 open STDERR, ">&" . $stderr_no or die $!
186 0 0 shift() // 15

or 3 conditions

line l !l&&r !l&&!r condition
78 0 45 0 $args->{$_} //= $conduit->{$_}
79 2 40 0 $args->{'conduit'} ||= delete $args->{'type'}
125 0 2 0 $fh->{'stdout_write'} ||= $fh->{'stdin_read'}
154 0 0 0 $errno // $!
155 0 0 0 $errno // $!
168 33 2 1 not $fh->{'stderr_read'} or $args->{'stdout'}
193 0 0 0 $! == 11 or $! == 4
0 0 0 $! == 11 or $! == 4 or $! == 11
194 0 0 0 $! == 104 or $! == 32
203 1 37 35 $self->{'wait_eof'} or $self->{'wait_sigchld'}