blib/lib/Plack/App/File.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 21 | 26 | 80.7 |
line | true | false | branch |
---|---|---|---|
23 | 111 | 19 | if ref $file eq 'ARRAY' |
25 | 0 | 19 | if ($path_info) { } |
42 | 1 | 125 | if ($path =~ /\0/) |
48 | 125 | 0 | if (@path) { } |
49 | 122 | 3 | if $path[0] eq '' |
54 | 5 | 120 | if (grep /^\.{2,}$/, @path) |
61 | 15 | 105 | if ($self->should_handle($try)) { } |
105 | 0 | elsif (not $self->allow_path_info) { } | |
70 | 105 | 15 | unless ($file) |
74 | 0 | 15 | unless (-r $file) |
89 | 1 | 15 | if ('CODE' eq ref $content_type) |
93 | 14 | 2 | if ($content_type =~ m[^text/]) |
97 | 0 | 16 | unless open my $fh, '<:raw', $file |