Condition Coverage

lib/Mojo/IOLoop/ReadWriteProcess.pm
Criterion Covered Total %
condition 55 103 53.4


and 2 conditions

line l !l condition
183 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
198 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
329 0 0 0 not $@ and $!
331 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
333 0 0 0 $self->serialize and $return
393 0 31 0 defined $_[0]->_status && $_[0]->quirkiness
465 35 219 3 not $self->execute and not $self->code
516 50 198 28 defined $ret and $ret == $pid || $ret == -1
222 4 22 $attempt > $max_attempts and $timeout <= 0
569 30 105 55 $wait and not defined $self->_status
573 1 122 68 $self->error and $self->error->size > 0

or 2 conditions

line l !l condition
375 0 0 0 shift() // 0
511 52 0 0 $self->total_sleeptime_during_kill // 0

or 3 conditions

line l !l&&r !l&&!r condition
110 16 0 0 $e // $?
16 12 1 $e // $?
151 5 0 0 $pid //= $self->pid
0 21 8 $pid //= $self->pid
174 234 1 1 $e // $?
1 1 1 $e // $?
298 18 0 0 open STDERR, '>&', $stderr or not !$internal_err->write($!)
0 0 0 open STDERR, '>&', $stderr or not !$internal_err->write($!)
301 18 0 0 open STDOUT, '>&', $stdout or not !$internal_err->write($!)
304 18 0 0 open STDIN, '>&', $stdin or not !$internal_err->write($!)
336 0 0 0 $@ // $!
493 242 0 0 shift() // $self->_default_kill_signal
494 238 3 0 shift() // $self->process_id
495 2 211 28 $self->kill_whole_group or $self->is_running
516 0 28 198 $ret == $pid || $ret == -1
28 235 13 defined $ret and $ret == $pid || $ret == -1 or $attempt > $max_attempts and $timeout <= 0
519 37 187 4 $attempt == 1 || $timeout <= 0
531 0 29 199 $ret == $pid or $ret == -1
549 15 0 1 $ret == $pid or $ret == -1