Branch Coverage

lib/Ubic/Service/SimpleDaemon.pm
Criterion Covered Total %
branch 21 40 52.5


line true false branch
21 183 14 if defined $PID_DIR
22 0 14 if ($ENV{'UBIC_DAEMON_PID_DIR'}) { }
36 4 7 unless ($daemon)
72 0 52 if ($params->{'ulimit'})
75 0 0 if ($@)
78 0 0 if ('BSD::Resource'->VERSION < 1.29)
89 0 197 if exists $self->{'pidfile'}
90 0 197 unless my $name = $self->full_name
102 69 141 if defined $self->{$_}
104 6 24 if ($self->{'reload_signal'})
107 0 30 if (defined $self->{'daemon_user'})
113 0 30 if (defined $self->{'ulimit'})
118 0 0 unless ($result)
129 0 68 if defined $self->{'user'}
136 68 0 unless defined $groups
137 0 0 if ref $groups eq 'ARRAY'
144 0 21 if $self->{'stop_timeout'}
150 61 74 if (my $daemon = check_daemon($self->pidfile)) { }
160 4 11 unless (defined $self->{'reload_signal'})
184 0 0 unless (defined $SIGNALS{$command})