Condition Coverage

blib/lib/Server/Starter.pm
Criterion Covered Total %
condition 29 52 55.7


and 3 conditions

line !l l&&!r l&&r condition
42 0 6 41 not ref $ports and defined $ports
44 0 41 6 not ref $paths and defined $paths
47 0 0 47 $opts->{'exec'} and ref $opts->{'exec'} eq 'ARRAY'
81 25 0 22 $opts->{'status_file'} && 'Server::Starter::Guard'->new(sub { if ($status_file_created) { unlink $opts->{'status_file'}; } ; } )
156 0 2 0 -S $_ and unlink $_
300 2 68 0 $block and $ENV{'ENABLE_AUTO_RESTART'}
368 17 37 0 not $restart and $ENV{'ENABLE_AUTO_RESTART'}
371 25 0 4 $elapsed_since_restart >= $auto_restart_interval and not %old_workers
410 0 0 0 $opts->{'pid_file'} and $opts->{'status_file'}
448 0 0 0 scalar @gens == 1 and $gens[0] == $wait_for
492 61 9 0 defined $dn and -d $dn
530 28 58 0 $pid == -1 and $@

or 2 conditions

line l !l condition
28 9 38 $opts->{'signal_on_hup'} ||= 'TERM'
29 0 47 $opts->{'signal_on_term'} ||= 'TERM'
30 0 47 $opts->{'backlog'} ||= 128
341 31 0 $ENV{'AUTO_RESTART_INTERVAL'} ||= 360
393 4 0 sleep $kill_old_delay || 1

or 3 conditions

line l !l&&r !l&&!r condition
40 41 6 0 $ports or $paths
284 3 35 10 grep {$_ ne 'HUP';} @signals_received or waitpid($pid, 1) <= 0