Branch Coverage

blib/lib/PAGI/App/File.pm
Criterion Covered Total %
branch 0 36 0.0


line true false branch
112 0 0 if $scope->{'type'} ne "http"
115 0 0 unless ($method eq "GET" or $method eq "HEAD")
123 0 0 if ($path =~ /\0/)
136 0 0 if ($component =~ /^\.{2,}$/)
141 0 0 if ($component =~ /^\./ and $component ne "")
152 0 0 if (-d $file_path)
155 0 0 if (-f $index_path)
162 0 0 unless (-f $file_path and -r $file_path)
169 0 0 unless ($real_path and index($real_path, $root) == 0)
181 0 0 if ($if_none_match and $if_none_match eq $etag)
196 0 0 $self->{'handle_ranges'} ? :
197 0 0 if ($range and $range =~ /bytes=(\d*)-(\d*)/)
199 0 0 if $start eq ""
200 0 0 if $end eq "" or $end >= $size
202 0 0 if ($start > $end or $start >= $size)
222 0 0 if ($method eq 'HEAD') { }
249 0 0 if ($method eq 'HEAD') { }
266 0 0 if lc $h->[0] eq $name