| blib/lib/Plack/Middleware/Static/OpenFileCache.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 14 | 20 | 70.0 |
| line | true | false | branch |
|---|---|---|---|
| 15 | 6 | 0 | unless defined $max |
| 16 | 5 | 1 | unless defined $self->expires |
| 17 | 6 | 0 | unless defined $self->buf_size |
| 26 | 1 | 35 | if ($res) |
| 27 | 0 | 1 | if (ref $$res[2] ne 'ARRAY') |
| 33 | 24 | 11 | unless defined $res |
| 34 | 6 | 5 | if (ref $$res[2] ne 'ARRAY') |
| 36 | 6 | 0 | if ($$self{'buf_size'} and $len and $len < $$self{'buf_size'}) { } |
| 47 | 6 | 5 | if ($$res[0] =~ /^2/ or $self->cache_errors) |
| 58 | 0 | 0 | if (@_) |