Condition Coverage

blib/lib/Mojo/Server/Prefork.pm
Criterion Covered Total %
condition 0 47 0.0


and 2 conditions

line l !l condition
71 0 0 $w->{'graceful'} = &steady_time() and last

and 3 conditions

line !l l&&!r l&&r condition
28 0 0 0 $pid and kill 0, $pid
57 0 0 0 say "Pre-forking does not support fork emulation." and exit 0
114 0 0 0 $log->error("Worker $pid has no heartbeat ($ht seconds), restarting (see FAQ for more)") and $w->{'graceful'} = $time
0 0 0 not $w->{'graceful'} and $w->{'time'} + $interval + $ht <= $time
119 0 0 0 $log->info("Stopping worker $pid gracefully ($gt seconds)") and kill('QUIT', $pid) || $self->_stopped($pid)
0 0 0 $graceful and not $w->{'quit'}++
120 0 0 0 $graceful and $graceful + $gt <= $time
124 0 0 0 $log->warn("Stopping worker $pid immediately") and kill('KILL', $pid) || $self->_stopped($pid)
0 0 0 $self->{'finished'} and not $graceful
163 0 0 0 $log->error("Worker $pid stopped too early, shutting down") and $self->_term

or 3 conditions

line l !l&&r !l&&!r condition
117 0 0 0 $w->{'graceful'} ||= $self->{'graceful'} ? $time : undef
119 0 0 0 kill('QUIT', $pid) || $self->_stopped($pid)
124 0 0 0 kill('KILL', $pid) || $self->_stopped($pid)
0 0 0 $w->{'force'} or $self->{'finished'} and not $graceful
185 0 0 0 $w->{'graceful'} ||= $time