Branch Coverage

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


line true false branch
145 0 9 unless my $pipe = $self->supervisor_pipe
148 0 9 unless (defined $pong)
166 0 0 unless my $pipe = $self->supervisor_pipe
169 0 0 unless defined $ok
187 0 1 if ($pid) { }
0 1 elsif (not defined $pid) { }
198 0 0 if ($_ eq 'ping') { }
0 0 elsif ($_ eq 'takeover') { }
0 0 elsif ($_ eq 'shutdown') { }
210 0 0 unless $self->getOption('no-warn')
214 0 0 unless $self->getOption('no-warn')
217 0 0 unless $self->getOption('no-warn')
239 1 0 unless $self->can_do_hot_reload
244 0 0 unless $ENV{'APP_BASE_DAEMON_PID'} == $$
245 0 0 if ($upgrading)
246 0 0 unless $self->getOption('no-warn')
249 0 0 unless $self->getOption('no-warn')
251 0 0 unless (defined($pid = fork))
252 0 0 unless $self->getOption('no-warn')
254 0 0 unless ($pid)
255 0 0 unless exec $ENV{'APP_BASE_SCRIPT_EXE'}, @{$self->{'orig_args'};}
259 0 0 if ($SIG{'ALRM'})
260 0 0 unless $self->getOption('no-warn')
263 0 0 unless $self->getOption('no-warn')
287 0 0 if ($ENV{'APP_BASE_DAEMON_GEN'} > 1 and $ENV{'APP_BASE_DAEMON_PID'} != $$)
289 0 0 if ($self->getOption('no-pid-file')) { }
293 0 0 $attempts == 1 ? :
301 0 0 unless $self->getOption('no-warn')
309 0 0 unless ($pid)
334 0 1 if ($self->is_supervisor) { }
335 0 0 if $self->_child_pid
346 0 0 if $self->supervisor_pipe