Branch Coverage

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


line true false branch
20 7 0 unless defined $size and $size > 0
23 0 7 if (defined $proxy)
31 0 7 unless ($method eq 'GET' or $method eq 'HEAD')
41 0 7 if ($scheme ne 'file')
50 0 7 unless (-e $path)
54 0 7 unless (-r _)
68 0 7 if (defined $ims)
70 0 0 if (defined $time and $time >= $mtime)
82 2 5 if (-d _)
84 0 2 unless opendir D, $path
93 0 2 $^O eq 'MacOS' ? :
96 16 36 if (-d "$pathe$_")
105 2 0 unless ($base->path =~ m[/$])
119 0 2 if $method eq 'HEAD'
130 3 2 if ($method ne 'HEAD')
131 0 3 unless open my $fh, '<', $path
138 3 3 if $bytes > 0