blib/lib/Mojo/IOLoop/Server.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 20 | 26 | 76.9 |
line | l | !l | condition |
---|---|---|---|
103 | 0 | 194 | $self->emit("accept", $handle) and next |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
18 | 1 | 3 | 111 | $self->{'handle'} and $self->reactor |
77 | 109 | 37 | 1 | not "Mojo::IOLoop::TLS"->can_tls and $args->{'tls'} |
96 | 379 | 4 | 2 | $args->{'single_accept'} && $accepted++ |
3 | 2 | 383 | $self->{'active'} and not $args->{'single_accept'} && $accepted++ |
line | l | !l | condition |
---|---|---|---|
32 | 147 | 0 | $args->{'address'} || '0.0.0.0' |
34 | 98 | 49 | $ENV{'MOJO_REUSE'} ||= "" |
49 | 0 | 146 | $args->{'backlog'} // 128 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
36 | 0 | 0 | 147 | $path && $ENV{'MOJO_REUSE'} =~ /(?:^|\,)unix:\Q$path\E:(\d+)/u || $port && $ENV{'MOJO_REUSE'} =~ /(?:^|\,)\Q$address:$port\E:(\d+)/u |
44 | 0 | 1 | 146 | $fd //= $args->{'fd'} |