Condition Coverage

blib/lib/Mojo/Run3.pm
Criterion Covered Total %
condition 28 50 56.0


and 2 conditions

line l !l condition
15 10 0 $ENV{'MOJO_RUN3_DEBUG'} && 1

and 3 conditions

line !l l&&!r l&&r condition
71 5 0 5 ref $_[-1] eq 'CODE' && pop()
165 0 169 135 $fh->{$name} and $fh->{$name} eq $handle
200 1 0 1 $pty and $options->{'make_slave_controlling_terminal'} // 1

or 2 conditions

line l !l condition
28 3 1 $self->{'buffer'}{$name} // ""
61 13 2 +(shift())->{'pid'} // -1
62 16 1 +(shift())->{'status'} // -1
121 0 0 $self->{'pid'} // 0
154 1 0 $real->close || die("Couldn't close ${conduit}: $!")
156 5 0 open($real, $conduit eq 'stdin' ? '<&=' : '>&=', fileno $virtual) || die("Couldn't dup ${conduit}: $!")
183 74 28 $options->{$conduit} // "close"
200 0 1 $options->{'make_slave_controlling_terminal'} // 1
211 0 0 $! || 0

or 3 conditions

line l !l&&r !l&&!r condition
145 3 1 13 $! == 11 or $! == 4
4 0 13 $! == 11 or $! == 4 or $! == 11
146 1 1 11 $! == 104 or $! == 32
185 2 10 0 $pty ||= "IO::Pty"->new
260 0 0 0 $! == 11 or $! == 4
0 0 0 $! == 11 or $! == 4 or $! == 11
261 0 0 0 $! == 104 or $! == 32