Branch Coverage

blib/lib/HTTP/Client/Parallel.pm
Criterion Covered Total %
branch 12 52 23.0


line true false branch
112 2 0 wantarray ? :
116 1 1 _INSTANCE($_[0], 'HTTP::Client::Parallel') ? :
121 0 2 wantarray ? :
129 0 0 _INSTANCE($_[0], 'HTTP::Client::Parallel') ? :
136 0 0 wantarray ? :
140 0 0 _INSTANCE($_[0], 'HTTP::Client::Parallel') ? :
148 0 0 wantarray ? :
170 0 0 if (-e $file)
172 0 0 if $mtime
182 0 0 unless open my $tmp_fh, '>', $tmpfile
190 0 0 if (defined $content_length and $file_length < $content_length) { }
0 0 elsif (defined $content_length and $file_length > $content_length) { }
199 0 0 if (-e $file)
203 0 0 unless rename $tmpfile, $file
205 0 0 if (my $lm = $response->last_modified)
243 0 2 if (&Scalar::Util::blessed($url) and $url->isa('HTTP::Request')) { }
2 0 elsif (&Scalar::Util::blessed($url) and $url->isa('URI') or not ref $url) { }
253 0 2 if ($$self{'modified_since'} and $$self{'modified_since'}{$url})
264 0 2 if $$self{'debug'}
278 2 0 if ($response->is_success) { }
0 0 elsif ($response->code == 304) { }
279 0 2 if $$self{'debug'}
280 0 2 if (my $local_file = $$self{'local_files'}{$request->uri})
285 0 0 if $$self{'debug'}
288 0 0 if $$self{'debug'}
292 2 0 if $$self{'url_count'} == $$self{'count'}