Condition Coverage

blib/lib/Starman/Server.pm
Criterion Covered Total %
condition 26 64 40.6


and 3 conditions

line !l l&&!r l&&r condition
252 0 83 0 $proto and $proto eq 'HTTP/1.0'
0 0 83 $proto and $proto eq 'HTTP/1.1'
253 0 0 0 $connection and $connection =~ /^keep-alive$/i
262 83 0 0 $connection and $connection =~ /^close$/i
347 120 0 83 $self->{'client'}{'inputbuf'} ne '' and $self->{'client'}{'inputbuf'} =~ /$Starman::Server::CR?$Starman::Server::LF$Starman::Server::CR?$Starman::Server::LF/s
457 0 0 4 $read and $read > 0
495 1 1 77 not $status =~ /^1\d\d|[23]04$/ and $env->{'REQUEST_METHOD'} ne 'HEAD'

or 2 conditions

line l !l condition
17 0 62 $ENV{'STARMAN_DEBUG'} || 0
91 0 61 $options->{'workers'} || 5
106 0 61 $options->{'max_requests'} || 1000
0 61 $options->{'backlog'} || 1024
224 83 0 $self->{'server'}{'peerport'} || 0
83 0 $self->{'server'}{'sockaddr'} || 0
83 0 $self->{'server'}{'sockport'} || 0
390 0 0 $code || 500

or 3 conditions

line l !l&&r !l&&!r condition
106 0 61 0 $options->{'min_servers'} || $workers
0 61 0 $options->{'min_spare_servers'} || $workers - 1
0 61 0 $options->{'max_spare_servers'} || $workers - 1
0 61 0 $options->{'max_servers'} || $workers
0 0 61 $options->{'user'} || $>
0 0 61 $options->{'group'} || $)
224 0 83 0 $self->{'server'}{'peerhost'} || $self->{'server'}{'peeraddr'}
352 0 37 83 not defined $read or $read == 0
422 0 0 6 not defined $read or $read == 0