Branch Coverage

blib/lib/POE/Wheel/Run/DaemonHelper.pm
Criterion Covered Total %
branch 14 60 23.3


line true false branch
163 0 1 if (not defined $opts{'program'}) { }
0 2 elsif (ref $opts{'program'} ne '' and ref $opts{'program'} ne 'ARRAY') { }
179 11 2 if (defined $opts{$arg})
180 0 11 if (ref $opts{$arg} ne "")
188 0 11 if ($self->{'args'}{'ints'}{$arg} and not $opts{$arg} =~ /^[0-9]+$/)
208 0 1 if ($@)
262 0 4 unless (defined $opts{'status'})
267 1 3 if ($opts{'error'})
274 4 0 if ($self->{'status_print'})
275 1 3 if ($self->{'status_print_warn'} and $opts{'error'}) { }
283 0 4 if ($self->{'status_syslog'})
284 0 0 if ($self->{'status_syslog_warn'} and $opts{'error'} and not $warned)
292 0 0 if ($@)
337 0 0 unless (defined $opts{'signal'})
343 0 0 unless (defined $pids[0])
349 0 0 if ($@)
403 0 0 if (defined $self->{'pid'})
409 0 0 if (defined $pid_from_pid_file)
441 0 0 if (not defined $self->{'pid_file'}) { }
0 0 elsif (not -f $self->{'pid_file'}) { }
449 0 0 if ($@)
458 0 0 if ($line =~ /^[0-9]+$/)
493 0 0 unless (defined $opts{'restart_ctl'})
572 0 0 if ($_[3]{'self'}{'pid_prepend'})
584 0 0 if ($_[3]{'self'}{'pid_prepend'})
596 0 0 unless (defined $child)
605 0 0 if ($_[12] ne 0)
613 0 0 if (defined $child)
618 0 0 if (not $error) { }
624 0 0 if ($_[3]{'self'}{'restart_ctl'}) { }