Condition Coverage

lib/Mojo/IOLoop/ReadWriteProcess.pm
Criterion Covered Total %
condition 57 103 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
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
391 0 33 3 defined $_[0]->_status && $_[0]->quirkiness
468 42 231 3 not $self->execute and not $self->code
528 50 198 28 defined $ret and $ret == $pid || $ret == -1
222 4 22 $attempt > $max_attempts and $timeout <= 0
581 30 116 55 $wait and not defined $self->_status
585 1 133 68 $self->error and $self->error->size > 0

or 2 conditions

line l !l condition
373 0 0 0 shift() // 0
523 52 0 0 $self->total_sleeptime_during_kill // 0

or 3 conditions

line l !l&&r !l&&!r condition
109 23 0 0 $e // $?
16 13 1 $e // $?
149 6 0 0 $pid //= $self->pid
0 22 8 $pid //= $self->pid
173 225 0 1 $e // $?
1 1 1 $e // $?
298 34 1 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 $@ // $!
505 246 5 0 shift() // $self->_default_kill_signal
506 238 3 0 shift() // $self->process_id
507 2 211 28 $self->kill_whole_group or $self->is_running
528 0 28 198 $ret == $pid || $ret == -1
28 235 13 defined $ret and $ret == $pid || $ret == -1 or $attempt > $max_attempts and $timeout <= 0
531 37 187 4 $attempt == 1 || $timeout <= 0
543 0 29 199 $ret == $pid or $ret == -1
561 15 0 1 $ret == $pid or $ret == -1