Condition Coverage

blib/lib/Starlight/Server.pm
Criterion Covered Total %
condition 53 115 46.0


and 2 conditions

line l !l condition
55 0 96 eval { do { socket my $ipv6_socket, 10, 2, 0 } } && 1
56 0 96 eval { do { require IO::Socket::IP; 1 } } && 1

and 3 conditions

line !l l&&!r l&&r condition
120 89 0 0 $args{'max_workers'} and $args{'max_workers'} > 1
139 82 6 0 $self->{'socket'} and $self->{'port'}
143 82 6 0 $self->{'socket'} and $self->{'ssl'}
206 0 6 82 $^O eq "linux" and $self->{'_listen_sock_is_tcp'}
211 82 0 6 $self->{'_listen_sock_is_unix'} and not $args{'Local'} =~ /^\0/
233 0 0 0 $is_keepalive and $self->{'can_exit'}
306 101 0 0 $may_keepalive and $max_reqs_per_child
101 0 0 $may_keepalive and $max_reqs_per_child and $proc_req_count >= $max_reqs_per_child
481 0 0 0 $$use_keepalive_r and lc $v ne "keep-alive"
497 0 2 89 defined $protocol and $protocol eq "HTTP/1.1"
511 0 0 0 not Plack::Util::status_with_no_entity_body($status_code) and defined(my $cl = Plack::Util::content_length($body))
530 2 5 84 defined $body and ref $body eq "ARRAY"
7 1 83 defined $body and ref $body eq "ARRAY" and @$body == 1
6 0 83 defined $body and ref $body eq "ARRAY" and @$body == 1 and defined $body->[0]
1 2 81 defined $body and ref $body eq "ARRAY" and @$body == 1 and defined $body->[0] and length $body->[0] < 8192
574 4 2 2 $use_chunked and not $completed
608 0 0 0 $! != 4 and $! != 11
0 0 0 $! != 4 and $! != 11 and $! != 11
696 0 0 0 $self->{'pid'} and $pid

or 2 conditions

line l !l condition
103 0 89 $args{'timeout'} || 300
0 89 $args{'keepalive_timeout'} || 2
0 89 $args{'max_keepalive_reqs'} || 1
0 89 $args{'server_ready'} || sub { }
0 89 $args{'ipv6'} || 1
0 88 $args{'max_reqs_per_child'} || $args{'max_requests'} || 1000
0 89 $args{'spawn_interval'} || 0
0 89 $args{'main_process_delay'} || 0.1
185 82 0 $self->{'port'} || 5000
298 100 1 $self->{'port'} || 0
100 1 $self->{'host'} || '*'
527 91 0 &HTTP::Status::status_message($status_code) || 'Unknown'

or 3 conditions

line l !l&&r !l&&!r condition
103 0 89 0 $args{'server_software'} || "Starlight/$VERSION ($^O)"
0 0 0 $args{'quiet'} || $args{'q'} || $ENV{'PLACK_QUIET'}
194 0 88 0 $self->{'listen_sock'} ||= $class->new(%args)
233 0 0 0 $is_keepalive and $self->{'can_exit'} or $self->{'term_received'} > 1
240 9 150 0 not defined $max_reqs_per_child or $proc_req_count < $max_reqs_per_child
498 4 0 85 defined $send_headers{'content-length'} or defined $send_headers{'transfer-encoding'}
511 0 0 0 defined $send_headers{'content-length'} or defined $send_headers{'transfer-encoding'}
595 109 100 11 $is_write or delete $self->{'_is_deferred_accept'}
608 10 0 0 defined $ret or $! != 4 and $! != 11 and $! != 11
796 0 0 0 $Starlight::Server::UID != $uid or $Starlight::Server::EUID != $uid