blib/lib/MVC/Neaf/X/Files.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 18 | 26 | 69.2 |
line | l | !l | condition |
---|---|---|---|
192 | 8 | 0 | $file =~ m[(^|/)\.] and die 404 |
274 | 123 | 2 | $entry =~ /^\./ and next |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
181 | 4 | 2 | 0 | $data->[1] and $data->[1] < $time |
221 | 1 | 0 | 5 | $type && $type =~ qr/^text|^image|javascript/ |
line | l | !l | condition |
---|---|---|---|
125 | 2 | 11 | $options{'buffer'} ||= 4096 |
131 | 0 | 1 | $options{'dir_template'} ||= \$dir_template |
134 | 4 | 9 | $options{'base_url'} || '/' |
316 | 3 | 3 | $ExtType{$spec->[1] or ''} || $spec->[1] || $self->guess_type($_, $spec->[0]) || 'text/plain' |
344 | 1 | 5 | $self->{'one_file'} ||= sub { my $req = shift(); return $self->serve_file($req->path); } |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
119 | 13 | 0 | 0 | abs_path($options{'root'}) || $options{'root'} |
130 | 0 | 1 | 0 | $options{'view'} ||= "MVC::Neaf::View::TT"->new |