Condition Coverage

blib/lib/Net/Async/HTTP.pm
Criterion Covered Total %
condition 60 94 63.8


and 3 conditions

line !l l&&!r l&&r condition
399 0 0 0 defined $ip_tos and $ip_tos eq "lowdelay"
400 0 0 0 defined $ip_tos and $ip_tos eq "throughput"
401 0 0 0 defined $ip_tos and $ip_tos eq "reliability"
402 0 0 0 defined $ip_tos and $ip_tos eq "mincost"
497 32 7 14 $conn->is_idle and $conn->read_handle
507 3 100 29 $max and @$conns >= $max
531 7 1 95 $self->{'pipeline'} && !$self->{'close_after_request'}
793 141 1 2 $self->{'require_SSL'} and not $SSL
806 141 0 1 defined $self->{'proxy_host'} and not defined $args{'proxy_path'}
868 108 1 11 $response->is_redirect and defined $response->header("Location")
929 41 0 103 defined $uri->scheme and $uri->scheme =~ /^http(s?)$/u
951 1 110 11 $redirects and $response->is_redirect
960 110 1 9 _should_redirect($response) && $redirects--
1060 0 79 0 builtin::blessed($uri) and not $uri->isa("URI")
1103 94 1 1 $headers and builtin::reftype($headers) eq "ARRAY"
94 0 1 $headers and builtin::reftype($headers) eq "HASH"
1112 94 0 1 defined $args{'user'} and defined $args{'pass'}
1120 94 0 2 defined $user and defined $pass

or 2 conditions

line l !l condition
477 0 102 $args{'family'} || $self->{'family'} || 0
492 67 79 $self->{'connections'}{$key} ||= []
493 69 77 $self->{'ready_queue'}{$key} ||= []
1067 47 49 delete $args{'method'} || 'GET'
1090 3 0 $args{'content_type'} // ""

or 3 conditions

line l !l&&r !l&&!r condition
789 4 0 140 $args{'stall_timeout'} // $self->{'stall_timeout'}
806 0 1 141 defined $args{'proxy_host'} or defined $self->{'proxy_host'} and not defined $args{'proxy_path'}
1 0 140 defined $args{'proxy_path'} or defined $self->{'proxy_path'}
810 0 1 0 $args{'proxy_host'} || $self->{'proxy_host'}
0 1 0 $args{'proxy_port'} || $self->{'proxy_port'}
816 1 0 0 $args{'proxy_path'} || $self->{'proxy_path'}
872 10 0 1 $req_method eq 'GET' || $req_method eq 'HEAD'
959 17 0 120 $f->failure or $f->is_cancelled
994 79 51 0 $args{'on_response'} or defined wantarray
1079 1 1 0 ref $args{'content'} or defined $args{'content_type'}