Branch Coverage

blib/lib/App/Base/Daemon/Supervisor.pm
Criterion Covered Total %
branch 6 64 9.3


line true false branch
147 0 11 unless my $pipe = $self->supervisor_pipe
150 0 11 unless (defined $pong)
168 0 0 unless my $pipe = $self->supervisor_pipe
171 0 0 unless defined $ok
189 0 1 if ($pid) { }
0 1 elsif (not defined $pid) { }
200 0 0 if ($_ eq 'ping') { }
0 0 elsif ($_ eq 'takeover') { }
0 0 elsif ($_ eq 'shutdown') { }
209 0 0 unless $self->getOption("no-warn")
213 0 0 unless $self->getOption("no-warn")
215 0 0 unless $self->getOption("no-warn")
236 1 0 unless $self->can_do_hot_reload
241 0 0 unless $ENV{'APP_BASE_DAEMON_PID'} == $$
242 0 0 if ($upgrading)
243 0 0 unless $self->getOption("no-warn")
246 0 0 unless $self->getOption("no-warn")
248 0 0 unless (defined($pid = fork))
249 0 0 unless $self->getOption("no-warn")
251 0 0 unless ($pid)
252 0 0 unless exec $ENV{'APP_BASE_SCRIPT_EXE'}, @{$self->{'orig_args'};}
256 0 0 if ($SIG{'ALRM'})
257 0 0 unless $self->getOption("no-warn")
260 0 0 unless $self->getOption("no-warn")
284 0 0 if ($ENV{'APP_BASE_DAEMON_GEN'} > 1 and $ENV{'APP_BASE_DAEMON_PID'} != $$)
286 0 0 if ($self->getOption('no-pid-file')) { }
290 0 0 $attempts == 1 ? :
297 0 0 unless $self->getOption("no-warn")
305 0 0 unless ($pid)
330 0 1 if ($self->is_supervisor) { }
331 0 0 if $self->_child_pid
345 0 0 if $self->supervisor_pipe