Condition Coverage

blib/lib/Mojo/Server/DaemonControl.pm
Criterion Covered Total %
condition 9 41 21.9


and 3 conditions

line !l l&&!r l&&r condition
40 0 1 1 -r $self->pid_file && $self->pid_file->slurp
42 0 0 1 $pid and kill 0, $pid
50 0 0 1 $file->spurt("$pid\n")->chmod(420) && $self
147 0 0 0 not $self->{'stop_signal'} and $n_missing-- > 0
153 0 0 0 $gt and $w->{'graceful'} + $gt < $time
228 1 0 1 $self->cleanup && $self->pid_file
229 1 0 1 $path and -e $path

or 2 conditions

line l !l condition
110 0 0 kill($signal, $w->{'pid'}) || 0

or 3 conditions

line l !l&&r !l&&!r condition
97 0 1 0 $ENV{'MOJO_LOG_LEVEL'} || ($ENV{'HARNESS_IS_VERBOSE'} ? 'debug' : ($ENV{'HARNESS_ACTIVE'} ? 'error' : 'info'))
124 0 0 0 $_->{$signal} ||= kill($signal, $_->{'pid'})
139 0 0 0 $w->{'graceful'} //= $time
164 0 0 0 $self->{'select'} ||= "IO::Select"->new($self->{'worker_read'})
172 0 0 0 $w->{'graceful'} ||= $time
189 0 0 0 $ENV{'MOJO_LOG_LEVEL'} ||= $self->log->level