Branch Coverage

blib/lib/MogileFS/HTTPFile.pm
Criterion Covered Total %
branch 0 52 0.0


line true false branch
17 0 0 unless ($url =~ m[^http://([^:/]+)(?::(\d+))?(/.+)$])
30 0 0 if $self->{'devid'}
31 0 0 unless $self->{'url'} =~ /\bdev(\d+)\b/
66 0 0 if ($res->code == 204 or $res->code == 404 and $opts{'ignore_missing'})
87 0 0 if ($cb) { }
88 0 0 if (defined $self->{'_size'}) { }
97 0 0 if defined $self->{'_size'}
112 0 0 if ($res->is_success) { }
114 0 0 if (not defined $size and $res->header('server') =~ /^lighttpd/)
124 0 0 if ($res->code == 404)
142 0 0 if ($reason and $reason eq 'fsck') { }
152 0 0 defined $reason ? :
165 0 0 if (defined $sock) { }
172 0 0 if $now < $next
178 0 0 if ($! or $rv != $reqlen)
181 0 0 if ($retries-- <= 0)
183 0 0 $err ? :
198 0 0 if (not $rv) { }
0 0 elsif ($rv =~ /^\Q$uri\E \Q$alg\E=([a-f0-9]{32,128})\r\n/) { }
0 0 elsif ($rv =~ /^\Q$uri\E \Q$alg\E=-1\r\n/) { }
0 0 elsif ($rv =~ /^ERROR /) { }
200 0 0 if $retries-- <= 0
208 0 0 if $@
242 0 0 if $res->is_success
243 0 0 if $res->code == 404
252 0 0 if $digest and $digest ne -1