Condition Coverage

blib/lib/Server/Starter.pm
Criterion Covered Total %
condition 29 49 59.1


and 3 conditions

line !l l&&!r l&&r condition
40 0 8 41 not ref $ports and defined $ports
42 0 43 6 not ref $paths and defined $paths
45 0 0 49 $opts->{'exec'} and ref $opts->{'exec'} eq 'ARRAY'
83 27 0 22 $opts->{'status_file'} && 'Server::Starter::Guard'->new(sub { if ($status_file_created) { unlink $opts->{'status_file'}; } ; } )
164 0 2 0 -S $_ and unlink $_
308 6 34 32 $block and $ENV{'ENABLE_AUTO_RESTART'}
376 17 8 30 not $restart and $ENV{'ENABLE_AUTO_RESTART'}
379 26 0 4 $elapsed_since_restart >= $auto_restart_interval and not %old_workers
418 0 0 0 $opts->{'pid_file'} and $opts->{'status_file'}
456 0 0 0 scalar @gens == 1 and $gens[0] == $wait_for
500 108 0 13 defined $dn and -d $dn
538 29 0 56 $pid == -1 and $@

or 2 conditions

line l !l condition
28 9 40 $opts->{'signal_on_hup'} ||= 'TERM'
29 0 49 $opts->{'signal_on_term'} ||= 'TERM'
30 0 49 $opts->{'backlog'} ||= 128
349 32 0 $ENV{'AUTO_RESTART_INTERVAL'} ||= 360
401 4 0 sleep $kill_old_delay || 1

or 3 conditions

line l !l&&r !l&&!r condition
292 7 32 10 grep {$_ ne 'HUP';} @signals_received or waitpid($pid, 1) <= 0