blib/lib/AnyEvent/UWSGI.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 0 | 76 | 0.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
143 | 0 | 0 | 0 | exists $kv->{'_expires'} and &AE::now() > $kv->{'_expires'} |
606 | 0 | 0 | 0 | $persistent and $_[3] |
0 | 0 | 0 | $persistent and $_[3] and $hdr{'HTTPVersion'} < 1.1 ? $hdr{'connection'} =~ /\bkeep-?alive\b/iu : !($hdr{'connection'} =~ /\bclose\b/iu) | |
632 | 0 | 0 | 0 | $redirect and exists $hdr{'location'} |
664 | 0 | 0 | 0 | not $redirect and $arg{'on_header'} |
0 | 0 | 0 | not $redirect and $arg{'on_header'} and not $arg{'on_header'}->(\%hdr) | |
0 | 0 | 0 | defined $len and $len == 0 | |
0 | 0 | 0 | not $redirect and $arg{'want_body_handle'} | |
768 | 0 | 0 | 0 | $was_persistent and $idempotent |
839 | 0 | 0 | 0 | $persistent and $KA_CACHE{$ka_key} |
line | l | !l | condition |
---|---|---|---|
218 | 0 | 0 | delete $kv{'path'} || '/' |
259 | 0 | 0 | $KA_CACHE{$ka_key} ||= [] |
684 | 0 | 0 | $arg{'on_body'} || sub { $body .= shift(); 1; } |
854 | 0 | 0 | $arg{'on_prepare'} || sub { $timeout; } |
941 | 0 | 0 | $3 || 3128 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
211 | 0 | 0 | 0 | &parse_date($date) || $anow |
0 | 0 | 0 | $snow ||= &parse_date($date) || $anow | |
397 | 0 | 0 | 0 | $arg{'timeout'} || $TIMEOUT |
445 | 0 | 0 | 0 | length $arg{'body'} or $method ne 'GET' |
591 | 0 | 0 | 0 | $status == 301 or $status == 302 |
0 | 0 | 0 | $status == 301 or $status == 302 or $status == 303 | |
0 | 0 | 0 | $status == 307 or $status == 308 | |
664 | 0 | 0 | 0 | $hdr{'Status'} =~ /^(?:1..|204|205|304)$/u or $method eq 'HEAD' |
0 | 0 | 0 | $hdr{'Status'} =~ /^(?:1..|204|205|304)$/u or $method eq 'HEAD' or defined $len and $len == 0 | |
706 | 0 | 0 | 0 | $hdr{'content-length'} ||= $cl |
759 | 0 | 0 | 0 | $! == 32 || !$! |
852 | 0 | 0 | 0 | $arg{'tcp_connect'} || do { require AnyEvent::Socket; \&AnyEvent::Socket::tcp_connect } |