blib/lib/MojoX/DirectoryListing.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 30 | 37 | 81.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
66 | 10 | 10 | 42 | $_ ne "." and $_ ne ".." |
110 | 2 | 0 | 5 | $format and $format =~ /te?xt/i |
279 | 167 | 0 | 0 | $item->{'forbidden'} and not $show_forbidden |
333 | 29 | 1 | 2 | defined $stylesheet and not ref $stylesheet |
line | l | !l | condition |
---|---|---|---|
153 | 11 | 21 | $self->param('C') || $self->stash('sort-column') || 'N' |
161 | 6 | 26 | $self->param('O') || $self->stash('sort-order') || 'A' |
163 | 2 | 30 | $self->stash("show-file-time") // 1 |
164 | 2 | 30 | $self->stash("show-file-size") // 1 |
165 | 2 | 30 | $self->stash("show-file-type") // 1 |
166 | 1 | 31 | $self->stash("show-forbidden") // 0 |
167 | 10 | 22 | $self->stash("show-icon") // 0 |
233 | 2 | 30 | $self->stash("header") // "Index of __DIR__" |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
63 | 4 | 6 | 0 | $local // $public_dir . $route |
69 | 10 | 0 | 0 | $options{'caller'} //= $caller |
130 | 6 | 22 | 0 | $local //= $public_dir . $route |