Condition Coverage

blib/lib/Starwoman/Server.pm
Criterion Covered Total %
condition 25 64 39.0


and 3 conditions

line !l l&&!r l&&r condition
260 0 45 0 $proto and $proto eq 'HTTP/1.0'
0 0 45 $proto and $proto eq 'HTTP/1.1'
261 0 0 0 $connection and $connection =~ /^keep-alive$/i
270 45 0 0 $connection and $connection =~ /^close$/i
355 1 77 45 defined $self->{'client'}{'inputbuf'} and $self->{'client'}{'inputbuf'} =~ /$Starwoman::Server::CR?$Starwoman::Server::LF$Starwoman::Server::CR?$Starwoman::Server::LF/s
465 0 0 4 $read and $read > 0
503 0 1 44 not $status =~ /^1\d\d|[23]04$/ and $env->{'REQUEST_METHOD'} ne 'HEAD'

or 2 conditions

line l !l condition
19 0 50 $ENV{'STARWOMAN_DEBUG'} || 0
93 0 49 $options->{'workers'} || 5
108 0 49 $options->{'max_requests'} || 1000
0 49 $options->{'backlog'} || 1024
232 45 0 $self->{'server'}{'peerport'} || 0
45 0 $self->{'server'}{'sockaddr'} || 0
45 0 $self->{'server'}{'sockport'} || 0
398 0 0 $code || 500

or 3 conditions

line l !l&&r !l&&!r condition
108 0 49 0 $options->{'min_servers'} || $workers
0 49 0 $options->{'min_spare_servers'} || $workers - 1
0 49 0 $options->{'max_spare_servers'} || $workers - 1
0 49 0 $options->{'max_servers'} || $workers
0 0 49 $options->{'user'} || $>
0 0 49 $options->{'group'} || $)
232 0 45 0 $self->{'server'}{'peerhost'} || $self->{'server'}{'peeraddr'}
360 0 33 45 not defined $read or $read == 0
430 0 0 0 not defined $read or $read == 0