| blib/lib/Plack/Middleware/Static.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 8 | 11 | 72.7 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 14 | 11 | 0 | 1 | $self->pass_through && $res->[0] == 404 |
| 27 | 1 | 11 | $res and not $self->pass_through && $res->[0] == 404 |
| line | l | !l | condition |
|---|---|---|---|
| 32 | 8 | 0 | $self->root || '.' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 32 | 4 | 8 | 0 | $self->{'file'} ||= 'Plack::App::File'->new({'root', $self->root || '.', 'encoding', $self->encoding, 'content_type', $self->content_type}) |