Branch Coverage

blib/lib/HTTP/Any/LWP.pm
Criterion Covered Total %
branch 0 76 0.0


line true false branch
11 0 0 if $opt->{'agent'}
12 0 0 if $opt->{'timeout'}
13 0 0 if $opt->{'max_size'}
15 0 0 if (defined $opt->{'max_redirect'}) { }
23 0 0 if ($opt->{'cookie'}) { }
0 0 elsif (defined $opt->{'cookie'}) { }
29 0 0 if (my $proxy = $opt->{'proxy'})
30 0 0 if ($proxy =~ m[^\w+://]) { }
42 0 0 if ($opt->{'headers'})
48 0 0 if $opt->{'referer'}
50 0 0 if ($opt->{'compressed'} or $opt->{'gzip'})
55 0 0 if ($method eq "POST")
56 0 0 unless ($opt->{'headers'}{'Content-Type'})
66 0 0 if ($on_header or $on_body)
76 0 0 unless ($h->{'Status'} == 301)
80 0 0 if ($opt->{'compressed'} || $opt->{'gzip'} and $content_encoding)
81 0 0 if ($content_encoding eq 'deflate') { }
0 0 elsif ($content_encoding eq 'gzip') { }
87 0 0 if ($on_header)
88 0 0 unless &$on_header($res->is_success || 0, $h, \@hr)
94 0 0 if ($on_body)
97 0 0 if ($headers_got)
98 0 0 if ($inflate) { }
100 0 0 unless $status == Compress::Raw::Zlib::Z_OK() or $status == Compress::Raw::Zlib::Z_STREAM_END()
101 0 0 if ($output)
102 0 0 unless &$on_body($output)
105 0 0 unless &$on_body($data)
123 0 0 if ($h->{'client-aborted'})
124 0 0 if ($h->{'client-aborted'} eq 'max_size') { }
0 0 elsif ($h->{'client-aborted'} eq 'die') { }
127 0 0 if ($h->{'x-died'} =~ /timeout/)
135 0 0 if ($on_body) { }
139 0 0 if ($res->content and $opt->{'compressed'} || $opt->{'gzip'} and $content_encoding and $content_encoding eq 'deflate' || $content_encoding eq 'gzip') { }
140 0 0 $content_encoding eq 'gzip' ? :
142 0 0 unless $status == Compress::Raw::Zlib::Z_OK() or $status == Compress::Raw::Zlib::Z_STREAM_END()
153 0 0 if (@_ == 4) { }
163 0 0 ref $v eq 'ARRAY' ? :
168 0 0 if (my $prev = $res->previous) { }