blib/lib/Plack/Middleware/Static.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 8 | 11 | 72.7 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
14 | 12 | 0 | 1 | $self->pass_through && $res->[0] == 404 |
28 | 1 | 12 | $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 | 5 | 8 | 0 | $self->{'file'} ||= "Plack::App::File"->new({"root", $self->root || '.', "encoding", $self->encoding, "content_type", $self->content_type}) |