Branch Coverage

blib/lib/Plack/Handler/Starlet.pm
Criterion Covered Total %
branch 22 30 73.3


line true false branch
14 9 105 if (defined $ENV{'SERVER_STARTER_PORT'})
20 0 27 if ($hostport =~ /(.*):(\d+)/) { }
26 0 27 unless $listen->{'sock'} = 'IO::Socket::INET'->new('Proto', 'tcp')
29 0 27 unless $listen->{'sock'}->fdopen($fd, 'w')
31 9 18 unless (@{$args{'listens'};})
41 30 198 if defined $args{$_}
44 2 112 if ($args{'child_exit'})
45 2 0 unless ref $args{'child_exit'}
46 0 2 if ref $args{'child_exit'} ne 'CODE'
60 112 1 if ($self->{'max_workers'} != 0) { }
69 112 0 if (defined $self->{'spawn_interval'})
73 0 112 if (defined $self->{'err_respawn_interval'})
78 13 99 if $pm->start
84 0 13 if ($self->{'spawn_interval'})
102 10000 100 if (my $min = $self->{'min_reqs_per_child'}) { }