Condition Coverage

blib/lib/Starman/Server.pm
Criterion Covered Total %
condition 30 70 42.8


and 3 conditions

line !l l&&!r l&&r condition
80 83 0 0 defined $opt and lc $opt eq "ssl"
253 0 88 0 $proto and $proto eq "HTTP/1.0"
0 0 88 $proto and $proto eq "HTTP/1.1"
254 0 0 0 $connection and $connection =~ /^keep-alive$/i
263 88 0 0 $connection and $connection =~ /^close$/i
348 131 2 88 $self->{'client'}{'inputbuf'} ne "" and $self->{'client'}{'inputbuf'} =~ /$Starman::Server::CR?$Starman::Server::LF$Starman::Server::CR?$Starman::Server::LF/s
458 0 0 8 $read and $read > 0
496 1 1 82 not $status =~ /^1\d\d|[23]04$/ and $env->{'REQUEST_METHOD'} ne "HEAD"

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
106 0 83 0 $options->{'min_servers'} || $workers
0 83 0 $options->{'min_spare_servers'} || $workers - 1
0 83 0 $options->{'max_spare_servers'} || $workers - 1
0 83 0 $options->{'max_servers'} || $workers
0 0 83 $options->{'user'} || $>
0 0 83 $options->{'group'} || $)
238 0 88 0 $self->{'server'}{'peerhost'} || $self->{'server'}{'peeraddr'}
353 0 43 90 not defined $read or $read == 0
423 0 0 5 not defined $read or $read == 0
586 145 0 4 defined $len or $! != 4