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
397 0 0 0 defined $ip_tos and $ip_tos eq "lowdelay"
398 0 0 0 defined $ip_tos and $ip_tos eq "throughput"
399 0 0 0 defined $ip_tos and $ip_tos eq "reliability"
400 0 0 0 defined $ip_tos and $ip_tos eq "mincost"
495 32 7 14 $conn->is_idle and $conn->read_handle
505 3 102 29 $max and @$conns >= $max
529 7 1 97 $self->{'pipeline'} && !$self->{'close_after_request'}
791 143 1 2 $self->{'require_SSL'} and not $SSL
804 143 0 1 defined $self->{'proxy_host'} and not defined $args{'proxy_path'}
866 110 1 11 $response->is_redirect and defined $response->header("Location")
927 41 0 105 defined $uri->scheme and $uri->scheme =~ /^http(s?)$/u
949 1 112 11 $redirects and $response->is_redirect
958 112 1 9 _should_redirect($response) && $redirects--
1058 0 81 0 &blessed($uri) and not $uri->isa("URI")
1101 96 1 1 $headers and &reftype($headers) eq "ARRAY"
96 0 1 $headers and &reftype($headers) eq "HASH"
1110 96 0 1 defined $args{'user'} and defined $args{'pass'}
1118 96 0 2 defined $user and defined $pass

or 2 conditions

line l !l condition
475 0 104 $args{'family'} || $self->{'family'} || 0
490 67 81 $self->{'connections'}{$key} ||= []
491 69 79 $self->{'ready_queue'}{$key} ||= []
1065 47 51 delete $args{'method'} || 'GET'
1088 3 0 $args{'content_type'} // ""

or 3 conditions

line l !l&&r !l&&!r condition
787 4 0 142 $args{'stall_timeout'} // $self->{'stall_timeout'}
804 0 1 143 defined $args{'proxy_host'} or defined $self->{'proxy_host'} and not defined $args{'proxy_path'}
1 0 142 defined $args{'proxy_path'} or defined $self->{'proxy_path'}
808 0 1 0 $args{'proxy_host'} || $self->{'proxy_host'}
0 1 0 $args{'proxy_port'} || $self->{'proxy_port'}
814 1 0 0 $args{'proxy_path'} || $self->{'proxy_path'}
870 10 0 1 $req_method eq 'GET' || $req_method eq 'HEAD'
957 17 0 122 $f->failure or $f->is_cancelled
992 81 51 0 $args{'on_response'} or defined wantarray
1077 1 1 0 ref $args{'content'} or defined $args{'content_type'}