Condition Coverage

blib/lib/Mojo/Run3.pm
Criterion Covered Total %
condition 34 57 59.6


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
72 5 0 5 ref $_[-1] eq 'CODE' && pop()
174 0 185 142 $fh->{$name} and $fh->{$name} eq $handle
211 1 0 1 $pty and $options->{'make_slave_controlling_terminal'} // 1
233 58 0 11 &blessed($fh) and $fh->can("set_raw")

or 2 conditions

line l !l condition
28 3 1 $self->{'buffer'}{$name} // ""
62 13 2 +(shift())->{'pid'} // -1
63 16 1 +(shift())->{'status'} // -1
130 0 0 $self->{'pid'} // 0
163 1 0 $real->close || die("Couldn't close ${conduit}: $!")
165 5 0 open($real, $conduit eq 'stdin' ? '<&=' : '>&=', fileno $virtual) || die("Couldn't dup ${conduit}: $!")
189 2 7 $options->{$_} //= "pipe"
194 78 28 $options->{$conduit} // "close"
211 0 1 $options->{'make_slave_controlling_terminal'} // 1
222 0 0 $! || 0
234 1 10 $options->{'close_slave'} // 1

or 3 conditions

line l !l&&r !l&&!r condition
154 3 1 14 $! == 11 or $! == 4
4 0 14 $! == 11 or $! == 4 or $! == 11
155 1 1 12 $! == 104 or $! == 32
196 2 11 0 $pty ||= "IO::Pty"->new
280 0 0 0 $! == 11 or $! == 4
0 0 0 $! == 11 or $! == 4 or $! == 11
281 0 0 0 $! == 104 or $! == 32