blib/lib/Plack/Handler/Gazelle.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 19 | 30 | 63.3 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
98 | 0 | 185 | 0 | $^O eq 'linux' and $self->{'_listen_sock_is_tcp'} |
254 | 6 | 10 | 129 | defined $body and ref $body eq 'ARRAY' |
line | l | !l | condition |
---|---|---|---|
78 | 2 | 183 | $args{'server_ready'} || sub { } |
180 | 5 | $args{'host'} || 0 | |
185 | 0 | $args{'port'} || 8080 | |
0 | 185 | $args{'timeout'} || 300 | |
2 | 183 | $args{'child_exit'} || sub { } | |
0 | 185 | $args{'max_reqs_per_child'} || $args{'max_requests'} || 1000 | |
0 | 185 | $args{'spawn_interval'} || 0 | |
153 | 7352 | 17 | $self->{'host'} || 0 |
7369 | 0 | $self->{'port'} || 0 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
78 | 0 | 185 | 0 | $args{'server_software'} || $class |
90 | 0 | 185 | 0 | $self->{'listen_sock'} ||= 'IO::Socket::INET'->new('Listen', 128, 'LocalPort', $self->{'port'}, 'LocalAddr', $self->{'host'}, 'Proto', 'tcp', 'ReuseAddr', 1) |