Condition Coverage

lib/File/Fetch.pm
Criterion Covered Total %
condition 21 72 29.1


and 3 conditions

line !l l&&!r l&&r condition
194 6 38 0 lc $args->scheme ne "file" and not $args->host
418 47 2 2 $href->{'host'} eq "localhost" and $href->{'scheme'} eq "file"
455 35 0 35 ref $target and UNIVERSAL::isa($target, "SCALAR")
508 0 0 24 -e $file and -s _
520 12 0 12 ref $target and UNIVERSAL::isa($target, "SCALAR")
909 6 0 2 $self->scheme eq "ftp" and $File::Fetch::FTP_PASSIVE
1226 0 0 0 $^O eq "netbsd" and $File::Fetch::FORCEIPV4
1275 1 0 0 &HAS_FETCH() and $fetch = can_run("fetch")
1352 0 2 0 not $share and $self->host

or 2 conditions

line l !l condition
372 4 5 $parts[0] || ''
794 0 18 $File::Fetch::TIMEOUT || 60
804 0 0 $File::Fetch::TIMEOUT || 60
931 0 0 $captured || ''
1004 0 0 $captured || ''
1101 0 0 $head || ''
1105 0 0 $head || ''
1140 0 0 $captured || ''
1200 0 0 $captured || ''
1255 0 0 $captured || ''
1310 0 0 $captured || ''
1428 0 0 join($", @$cmd) || ''
0 0 $captured || ''
1474 0 0 join($", @$cmd) || ''
0 0 $captured || ''

or 3 conditions

line l !l&&r !l&&!r condition
229 94 0 0 $file ||= $self->file_default
608 0 0 0 $res->code == 304 or $res->code == 200
713 0 0 0 $rc == 301 or $rc == 302
796 0 6 6 not defined $ret or $ret == 0
1381 0 0 2 not $rv or $@