line |
true |
false |
branch |
21
|
7 |
7 |
if (@_ and scalar @_ > 1) { } |
22
|
1 |
6 |
if @_ % 2 != 0 |
24
|
6 |
6 |
if $id % 2 == 0 |
33
|
2 |
11 |
if ref $run ne 'HASH' |
34
|
2 |
9 |
unless scalar keys %$run |
46
|
1 |
9 |
if (not $$run{$svc}) { } |
|
2 |
7 |
elsif (not ref $$run{$svc}) { } |
|
1 |
6 |
elsif (ref $$run{$svc} eq 'CODE') { } |
|
3 |
3 |
elsif (ref $$run{$svc} eq 'ARRAY') { } |
56
|
1 |
2 |
if (not $$run{$svc}[0]) { } |
|
1 |
1 |
elsif (not ref $$run{$svc}[0]) { } |
|
1 |
0 |
elsif (ref $$run{$svc}[0] eq 'CODE') { } |
67
|
7 |
1 |
if (ref $$run{$svc} eq 'HASH') { } |
68
|
1 |
2 |
unless ($$run{$svc}{'cmd'} or $$run{$svc}{'code'}) |
73
|
30 |
0 |
if (not defined $$run{$svc}{$opt}) { } |
|
0 |
0 |
elsif ($opt =~ /delay|wait/ and $$run{$svc}{$opt} <= 0) { } |
106
|
0 |
0 |
if $$self{'conf'}{'umask'} |
110
|
0 |
0 |
if $$self{'conf'}{'listen'} |
111
|
0 |
0 |
if ref $$self{'server'} eq 'Guard' |
128
|
0 |
0 |
if ($$svc{'start_count'}) { } |
137
|
0 |
0 |
unless (defined $pid) |
143
|
0 |
0 |
if ($pid == 0) { } |
146
|
0 |
0 |
if ($$svc{'group'}) |
150
|
0 |
0 |
if ($$svc{'user'}) |
155
|
0 |
0 |
if $$svc{'umask'} |
157
|
0 |
0 |
if ($$svc{'cwd'}) |
158
|
0 |
0 |
unless chdir $$svc{'cwd'} |
162
|
0 |
0 |
if $$svc{'env'} and ref $$svc{'env'} eq 'HASH' |
164
|
0 |
0 |
if ($$svc{'setsid'}) |
165
|
0 |
0 |
unless $$svc{'pgrp'} = POSIX::setsid() |
169
|
0 |
0 |
if ($$svc{'cmd'} and not ref $$svc{'cmd'}) { } |
|
0 |
0 |
elsif ($$svc{'cmd'} and ref $$svc{'cmd'} eq 'ARRAY') { } |
|
0 |
0 |
elsif ($$svc{'code'} and ref $$svc{'code'} eq 'CODE') { } |
|
0 |
0 |
elsif ($$svc{'code'} and ref $$svc{'code'} eq 'ARRAY') { } |
183
|
0 |
0 |
if (ref $code eq 'CODE') |
215
|
0 |
0 |
if ($$svc{'state'} eq 'stop') { } |
|
0 |
0 |
elsif ($$svc{'once'}) { } |
231
|
0 |
0 |
if ($$svc{'start_retries'}) { } |
232
|
0 |
0 |
if ($$svc{'start_count'} and $$svc{'start_count'} >= $$svc{'start_retries'}) |
254
|
0 |
0 |
unless $$svc{'state'} eq 'start' |
255
|
0 |
0 |
unless ($$svc{'pid'}) |
268
|
0 |
0 |
if ($$svc{'stop_wait'} and $$svc{'stop_wait'} > 0) |
281
|
0 |
0 |
unless $$svc{'state'} eq 'stop' |
282
|
0 |
0 |
if ($$svc{'pid'}) |
290
|
0 |
0 |
unless $$svc{'pid'} and $sig |
306
|
0 |
0 |
unless my $pid = $$svc{'pid'} |
312
|
0 |
0 |
if $cv and $is_any_alive |
315
|
0 |
0 |
if $cv |
324
|
0 |
0 |
if $host eq 'unix/' and -e $port |
337
|
0 |
0 |
unless $fh |
364
|
0 |
0 |
if ($ln) |
367
|
0 |
0 |
if ($ln =~ /^(\.|quit)$/) { } |
|
0 |
0 |
elsif ($ln eq 'status') { } |
|
0 |
0 |
elsif (index($ln, ' ') >= 0) { } |
375
|
0 |
0 |
if ($sw and $svc) |
377
|
0 |
0 |
if ($$self{'run'}{$svc} and ref $$cmds{$sw} eq 'CODE') { } |
386
|
0 |
0 |
ref $st eq 'ARRAY' ? : |
387
|
0 |
0 |
$st ? : |
388
|
0 |
0 |
if $st |
421
|
0 |
0 |
unless ($_[0]{'pid'}) |
427
|
0 |
0 |
unless ($_[0]{'pid'}) |
433
|
0 |
0 |
if $_[0]{'pid'} |
436
|
0 |
0 |
if $_[0]{'pid'} |
439
|
0 |
0 |
if $_[0]{'pid'} |
442
|
0 |
0 |
if $_[0]{'pid'} |
445
|
0 |
0 |
if $_[0]{'pid'} |
448
|
0 |
0 |
if $_[0]{'pid'} |
451
|
0 |
0 |
if $_[0]{'pid'} |
454
|
0 |
0 |
if $_[0]{'pid'} |
457
|
0 |
0 |
if $_[0]{'pid'} |
460
|
0 |
0 |
if $_[0]{'pid'} |
463
|
0 |
0 |
if $_[0]{'pid'} |
466
|
0 |
0 |
if ($_[0]{'pid'} and $_[0]{'start_ts'}) { } |
|
0 |
0 |
elsif ($_[0]{'start_count'}) { } |
492
|
0 |
0 |
unless $hdl and ref $$self{'cmds'}{'status'} eq 'CODE' |
495
|
0 |
0 |
ref $st eq 'ARRAY' ? : |