Condition Coverage

lib/File/Fetch.pm
Criterion Covered Total %
condition 25 78 32.0


and 3 conditions

line !l l&&!r l&&r condition
195 6 43 0 lc $args->scheme ne "file" and not $args->host
422 51 4 2 $href->{'host'} eq "localhost" and $href->{'scheme'} eq "file"
459 39 0 39 ref $target and UNIVERSAL::isa($target, "SCALAR")
514 0 0 28 -e $file and -s _
526 14 0 14 ref $target and UNIVERSAL::isa($target, "SCALAR")
654 8 0 0 $self->scheme eq "https" and not "HTTP::Tiny"->can_ssl
926 0 0 0 $self->scheme eq "ftp" and $File::Fetch::FTP_PASSIVE
1246 8 0 0 $^O eq "netbsd" and $File::Fetch::FORCEIPV4
1295 1 0 0 &HAS_FETCH() and $fetch = can_run("fetch")
1372 0 2 0 not $share and $self->host

or 2 conditions

line l !l condition
373 4 5 $parts[0] || ''
811 24 0 $File::Fetch::TIMEOUT || 60
821 0 0 $File::Fetch::TIMEOUT || 60
948 0 0 $captured || ''
1024 0 0 $captured || ''
1121 0 0 $head || ''
1125 0 0 $head || ''
1160 0 0 $captured || ''
1220 0 0 $captured || ''
1275 0 0 $captured || ''
1330 0 0 $captured || ''
1448 0 0 join($", @$cmd) || ''
0 0 $captured || ''
1494 0 0 join($", @$cmd) || ''
0 0 $captured || ''

or 3 conditions

line l !l&&r !l&&!r condition
230 82 24 0 $file ||= $self->file_default
366 42 0 6 $href->{'scheme'} eq "http" or $href->{'scheme'} eq "https"
621 0 10 0 $res->code == 304 or $res->code == 200
730 0 0 0 $rc == 301 or $rc == 302
813 0 8 8 not defined $ret or $ret == 0
1401 0 0 2 not $rv or $@