Branch Coverage

blib/lib/Net/Server/Fork.pm
Criterion Covered Total %
branch 12 46 26.0


line true false branch
42 1 0 unless defined $prop->{'max_servers'}
43 1 0 unless defined $prop->{'check_for_dead'}
54 0 1 if ($ENV{'HUP_CHILDREN'})
68 0 0 if $chld <= 0
79 0 1 if ($ENV{'HUP_CHILDREN'})
81 0 0 unless $chld > 0
98 0 0 if ($time - $last_checked_for_dead > $prop->{'check_for_dead'})
102 0 0 unless kill 0, $_
108 0 2 if ($prop->{'check_for_dequeue'})
110 0 0 if ($time - $last_checked_for_dequeue > $prop->{'check_for_dequeue'})
112 0 0 if ($prop->{'max_dequeue'})
114 0 0 if $n_dequeue < $prop->{'max_dequeue'}
121 0 1 unless ($self->accept)
122 0 0 if $prop->{'_HUP'}
123 0 0 if $prop->{'done'}
132 0 1 unless (defined $pid)
139 0 1 unless ($pid)
145 1 0 unless $prop->{'udp_true'}
158 0 1 if (check_sigs())
159 0 0 if $prop->{'_HUP'}
160 0 0 unless @socks
164 0 1 unless defined $sock
167 0 1 if (2 == $sock->getsockopt(1, 3)) { }