Branch Coverage

blib/lib/MooseX/Daemonize.pm
Criterion Covered Total %
branch 18 32 56.2


line true false branch
95 3 4 unless (-d $self->pidbase)
97 0 3 if (@$err)
103 1 6 -e $file ? :
0 7 unless -e $file ? -w $file : -w $self->pidbase
124 2 0 if $self->pidfile->pid == $$
136 0 6 if ($self->pidfile->is_running)
142 0 6 if ($self->foreground) { }
147 0 4 if ($@)
154 2 2 unless ($self->is_daemon)
176 1 4 if ($self->pidfile->is_running) { }
194 0 0 unless ($self->stop)
199 0 0 unless ($self->start)
204 0 0 if ($self->exit_code == $self->OK)
224 2 3 if ($self->pidfile->is_running) { }
229 2 0 unless ($self->foreground)
234 0 2 if ($@) { }