Condition Coverage

lib/Mojo/IOLoop/ReadWriteProcess.pm
Criterion Covered Total %
condition 62 112 55.3


and 2 conditions

line l !l condition
182 0 0 $self->_new_err("Cannot read from return code pipe") and return
2 0 0 $self->_new_err("Cannot read from return code pipe") and return
197 0 1 $self->_new_err("Cannot read from errors code pipe") and return
1 0 2 $self->_new_err("Cannot read from errors code pipe") and return

and 3 conditions

line !l l&&!r l&&r condition
332 0 0 0 not $@ and $!
334 0 0 0 not $self->serialize and ref $rt eq "ARRAY"
0 0 0 not $self->serialize and ref $rt eq "ARRAY" and scalar @$rt == 1
336 0 0 0 $self->serialize and $return
394 0 34 3 defined $_[0]->_status && $_[0]->quirkiness
472 38 219 2 not $self->execute and not $self->code
533 50 198 28 defined $ret and $ret == $pid || $ret == -1
222 4 22 $attempt > $max_attempts and $timeout <= 0
586 45 123 55 $wait and not defined $self->_status
590 1 148 75 $self->error and $self->error->size > 0

or 2 conditions

line l !l condition
376 0 0 0 shift() // 0
526 52 0 0 $self->total_sleeptime_during_kill // 0

or 3 conditions

line l !l&&r !l&&!r condition
109 27 0 0 $e // $?
1 8 1 $e // $?
149 7 0 0 $pid //= $self->pid
0 9 1 $pid //= $self->pid
173 236 1 1 $e // $?
1 1 1 $e // $?
298 23 0 0 open STDERR, ">&", $stderr or not !$internal_err->write($!)
18 0 0 open STDERR, ">&", $stderr or not !$internal_err->write($!) or $self->_diag($!)
0 0 0 open STDERR, ">&", $stderr or not !$internal_err->write($!)
302 18 0 0 open STDOUT, ">&", $stdout or not !$internal_err->write($!)
18 0 0 open STDOUT, ">&", $stdout or not !$internal_err->write($!) or $self->_diag($!)
306 18 0 0 open STDIN, ">&", $stdin or not !$internal_err->write($!)
18 0 0 open STDIN, ">&", $stdin or not !$internal_err->write($!) or $self->_diag($!)
339 0 0 0 $@ // $!
509 252 17 1 shift() // $self->_default_kill_signal
510 238 3 0 shift() // $self->process_id
511 2 211 28 $self->kill_whole_group or $self->is_running
533 0 28 198 $ret == $pid || $ret == -1
28 235 13 defined $ret and $ret == $pid || $ret == -1 or $attempt > $max_attempts and $timeout <= 0
536 37 187 4 $attempt == 1 || $timeout <= 0
548 0 29 199 $ret == $pid or $ret == -1
566 12 3 1 $ret == $pid or $ret == -1