blib/lib/Mojolicious/Plugin/Directory.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 16 | 24 | 66.6 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
65 | 8 | 0 | 1 | $index and my $index_path = locate_index($index, $path) |
line | l | !l | condition |
---|---|---|---|
52 | 1 | 6 | $args->{'auto_index'} // 1 |
77 | 1 | 0 | shift() || (return) |
94 | 3 | 0 | get_ext($path) || 'txt' |
121 | 14 | 45 | $types->type(get_ext($file) || 'txt') || 'text/plain' |
127 | 69 | 0 | $stat[7] || 0 |
154 | 7 | 0 | shift() || (return []) |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
49 | 6 | 1 | 0 | $args->{'root'} || Cwd::getcwd() |
78 | 1 | 0 | 0 | shift() || Cwd::getcwd() |
158 | 7 | 7 | 69 | $ent eq '.' or $ent eq '..' |