Condition Coverage

blib/lib/Starman/Server.pm
Criterion Covered Total %
condition 31 70 44.2


and 3 conditions

line !l l&&!r l&&r condition
80 101 0 0 defined $opt and lc $opt eq "ssl"
253 0 89 0 $proto and $proto eq "HTTP/1.0"
0 0 89 $proto and $proto eq "HTTP/1.1"
254 0 0 0 $connection and $connection =~ /^keep-alive$/i
263 87 2 0 $connection and $connection =~ /^close$/i
348 136 2 89 $self->{'client'}{'inputbuf'} ne "" and $self->{'client'}{'inputbuf'} =~ /$Starman::Server::CR?$Starman::Server::LF$Starman::Server::CR?$Starman::Server::LF/s
445 0 0 9 $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 105 $ENV{'STARMAN_DEBUG'} || 0
91 0 101 $options->{'workers'} || 5
106 0 101 $options->{'max_requests'} || 1000
0 101 $options->{'backlog'} || 1024
238 89 0 $self->{'server'}{'peerport'} || 0
89 0 $self->{'server'}{'sockaddr'} || 0
89 0 $self->{'server'}{'sockport'} || 0
391 0 0 $code || 500

or 3 conditions

line l !l&&r !l&&!r condition
106 0 101 0 $options->{'min_servers'} || $workers
0 101 0 $options->{'min_spare_servers'} || $workers - 1
0 101 0 $options->{'max_spare_servers'} || $workers - 1
0 101 0 $options->{'max_servers'} || $workers
0 0 101 $options->{'user'} || $>
0 101 0 $options->{'group'} || $)
238 0 89 0 $self->{'server'}{'peerhost'} || $self->{'server'}{'peeraddr'}
353 0 47 91 not defined $read or $read == 0
455 0 0 5 not defined $read or $read == 0
586 153 0 4 defined $len or $! != 4