| blib/lib/Mojolicious/Plugin/DirectoryServer.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 19 | 25 | 76.0 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 77 | 10 | 0 | 1 | $index and my $index_path = locate_index($index, $path) |
| 81 | 8 | 1 | 1 | $c->req->url->path ne "/" and not $c->req->url->path->trailing_slash |
| line | l | !l | condition |
|---|---|---|---|
| 58 | 1 | 7 | $args->{'auto_index'} // 1 |
| 98 | 1 | 0 | shift() || (return) |
| 134 | 15 | 61 | $types->type(get_ext($file) || 'txt') || 'text/plain' |
| 140 | 86 | 1 | $stat[7] || 0 |
| 167 | 8 | 0 | shift() || (return []) |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 55 | 7 | 1 | 0 | $args->{'root'} || Cwd::getcwd() |
| 99 | 1 | 0 | 0 | shift() || Cwd::getcwd() |
| 171 | 8 | 8 | 87 | $ent eq "." or $ent eq ".." |