Condition Coverage

lib/Mojo/IOLoop/ReadWriteProcess.pm
Criterion Covered Total %
condition 63 112 56.2


and 2 conditions

line l !l condition
182 0 0 $self->_new_err("Cannot read from return code pipe") and return
76 4 8 $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
10 79 9 $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 33 3 defined $_[0]->_status && $_[0]->quirkiness
471 36 219 2 not $self->execute and not $self->code
531 33 129 19 defined $ret and $ret == $pid || $ret == -1
148 0 14 $attempt > $max_attempts and $timeout <= 0
584 47 116 55 $wait and not defined $self->_status
588 13 195 72 $self->error and $self->error->size > 0

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
109 23 0 0 $e // $?
16 22 70 $e // $?
149 6 0 0 $pid //= $self->pid
0 31 77 $pid //= $self->pid
173 236 1 1 $e // $?
18 70 10 $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($!)
5 0 1 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 $@ // $!
508 172 17 1 shift() // $self->_default_kill_signal
509 158 3 0 shift() // $self->process_id
510 0 142 19 $self->kill_whole_group or $self->is_running
531 0 19 129 $ret == $pid || $ret == -1
19 156 6 defined $ret and $ret == $pid || $ret == -1 or $attempt > $max_attempts and $timeout <= 0
534 105 125 0 $attempt == 1 || $timeout <= 0
546 2 89 139 $ret == $pid or $ret == -1
564 10 0 0 $ret == $pid or $ret == -1