Branch Coverage

blib/lib/Dancer2/Handler/File.pm
Criterion Covered Total %
branch 3 30 10.0


line true false branch
60 0 0 unless -d $self->public_dir
79 0 0 if ($path =~ /\0/)
83 0 0 if ($prefix and $prefix ne "/")
88 0 0 unless defined $file_path
90 0 0 unless (-f $file_path)
95 0 0 unless (-r $file_path)
109 0 0 if ($content_type =~ m[^text/])
115 0 0 unless $app->response->header("Content-Type")
118 0 0 unless $app->response->header("Content-Length")
121 0 0 unless $app->response->header("Last-Modified")
130 0 0 $app->request->method eq 'GET' ? :
140 0 9 if grep(($_ eq $updir), @tokens)
144 0 0 if length $volume and length $pub_vol and $volume ne $pub_vol
146 0 9 length $volume ? :
0 9 length $pub_vol ? :