blib/lib/Mojolicious/Plugin/Directory.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 19 | 27 | 70.3 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
65 | 9 | 0 | 1 | $index and my $index_path = locate_index($index, $path) |
69 | 7 | 1 | 1 | $c->req->url->path ne '/' and not $c->req->url->path->trailing_slash |
line | l | !l | condition |
---|---|---|---|
52 | 1 | 6 | $args->{'auto_index'} // 1 |
82 | 1 | 0 | shift() || (return) |
99 | 3 | 0 | get_ext($path) || 'txt' |
126 | 14 | 45 | $types->type(get_ext($file) || 'txt') || 'text/plain' |
132 | 69 | 0 | $stat[7] || 0 |
159 | 7 | 0 | shift() || (return []) |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
49 | 6 | 1 | 0 | $args->{'root'} || Cwd::getcwd() |
83 | 1 | 0 | 0 | shift() || Cwd::getcwd() |
163 | 7 | 7 | 69 | $ent eq '.' or $ent eq '..' |