Branch Coverage

blib/lib/Plack/Server/AnyEvent.pm
Criterion Covered Total %
branch 0 80 0.0


line true false branch
74 0 0 unless $sock
78 0 0 if ($$self{'no_delay'})
79 0 0 unless setsockopt $sock, 6, 1, 1
86 0 0 if ($self->_try_read_headers($sock, $headers))
105 0 0 if ($reqlen < 0) { }
116 0 0 unless (eval { do { if (my $env = &$try_parse()) { $self->_run_app($app, $env, $sock); } else { $self->_create_req_parsing_watcher($sock, $try_parse, $app); } ; 1 } })
117 0 0 if (my $env = &$try_parse()) { }
142 0 0 if (defined(my $line = <$sock>)) { }
0 0 elsif ($! and ($! != 11 and $! != 4 and $! != -1e+99)) { }
145 0 0 if ($line eq "\r\n" or $line eq "\n") { }
167 0 0 if (my $env = &$try_parse())
198 0 0 if (ref $res eq 'ARRAY') { }
0 0 elsif (blessed $res and $res->isa('AnyEvent::CondVar')) { }
0 0 elsif (ref $res eq 'CODE') { }
207 0 0 if (@$res < 2) { }
0 0 elsif (@$res == 2) { }
223 0 0 if $post
236 0 0 if (ref $res eq 'ARRAY') { }
237 0 0 if (scalar @$res == 0)
249 0 0 if (eval { do { $_[0]->recv; 1 } })
253 0 0 unless eval { do { $cv->send($_[0]->recv); 1 } }
307 0 0 if ((my $written = syswrite($socket, $$data)) < length $$data) { }
0 0 elsif (defined wantarray) { }
312 0 0 if (not defined $written and ($! != 11 and $! != 4 and $! != -1e+99))
314 0 0 if $done
328 0 0 if (defined $out) { }
0 0 elsif ($! != 11 and $! != 4 and $! != -1e+99) { }
331 0 0 if ($written == $length) { }
333 0 0 if $done
338 0 0 if $done
355 0 0 if (ref $body eq 'ARRAY') { }
0 0 elsif (&Plack::Util::is_real_fh($body)) { }
0 0 elsif (blessed $body and $body->can('string_ref')) { }
364 0 0 if (my $pos = $body->tell) { }
386 0 0 if (defined(my $buf = $body->getline)) { }
0 0 elsif ($!) { }
416 0 0 if (HAS_AIO and -s $body) { }
424 0 0 if $ret > 0
425 0 0 if ($offset >= $length or $ret == -1 and not $! == 11 || $! == 4) { }
426 0 0 if ($ret == -1) { }