Condition Coverage

blib/lib/Net/Async/HTTP.pm
Criterion Covered Total %
condition 55 85 64.7


and 3 conditions

line !l l&&!r l&&r condition
392 0 0 0 defined $ip_tos and $ip_tos eq 'lowdelay'
393 0 0 0 defined $ip_tos and $ip_tos eq 'throughput'
394 0 0 0 defined $ip_tos and $ip_tos eq 'reliability'
395 0 0 0 defined $ip_tos and $ip_tos eq 'mincost'
488 31 7 13 $conn->is_idle and $conn->read_handle
498 3 95 28 $max and @$conns >= $max
522 7 1 90 $self->{'pipeline'} && !$self->{'close_after_request'}
770 135 0 0 $self->{'require_SSL'} and not $SSL
823 103 1 9 $response->is_redirect and defined $response->header('Location')
884 40 0 95 defined $uri->scheme and $uri->scheme =~ /^http(s?)$/
906 1 105 9 $redirects and $response->is_redirect
915 105 1 7 _should_redirect($response) && $redirects--
1015 0 74 0 &blessed($uri) and not $uri->isa('URI')
1053 86 1 1 $headers and &reftype($headers) eq 'ARRAY'
86 0 1 $headers and &reftype($headers) eq 'HASH'
1062 86 0 1 defined $args{'user'} and defined $args{'pass'}
1070 86 0 2 defined $user and defined $pass

or 2 conditions

line l !l condition
467 0 98 $args{'family'} || $self->{'family'} || 0
483 65 74 $self->{'connections'}{$key} ||= []
484 67 72 $self->{'ready_queue'}{$key} ||= []
1022 44 44 delete $args{'method'} || 'GET'
1045 2 0 $args{'content_type'} // ''

or 3 conditions

line l !l&&r !l&&!r condition
766 4 0 131 $args{'stall_timeout'} // $self->{'stall_timeout'}
815 1 134 0 $args{'proxy_host'} || $self->{'proxy_host'} || $host
1 134 0 $args{'proxy_port'} || $self->{'proxy_port'} || $port
0 1 134 $args{'proxy_host'} || $self->{'proxy_host'}
827 8 0 1 $req_method eq 'GET' || $req_method eq 'HEAD'
914 15 0 113 $f->failure or $f->is_cancelled
949 79 44 0 $args{'on_response'} or defined wantarray
1034 1 1 0 ref $args{'content'} or defined $args{'content_type'}