Branch Coverage

blib/lib/LWP/Protocol/file.pm
Criterion Covered Total %
branch 20 34 58.8


line true false branch
18 7 0 unless defined $size and $size > 0
21 0 7 if (defined $proxy)
29 0 7 unless ($method eq 'GET' or $method eq 'HEAD')
39 0 7 if ($scheme ne 'file')
48 0 7 unless (-e $path)
52 0 7 unless (-r _)
66 0 7 if (defined $ims)
68 0 0 if (defined $time and $time >= $mtime)
80 2 5 if (-d _)
82 0 2 unless opendir D, $path
91 0 2 $^O eq 'MacOS' ? :
94 16 36 if (-d "$pathe$_")
103 2 0 unless ($base->path =~ m[/$])
117 0 2 if $method eq 'HEAD'
128 3 2 if ($method ne 'HEAD')
129 0 3 unless open my $fh, '<', $path
136 3 3 if $bytes > 0