| blib/lib/Plack/Middleware/ConditionalGET.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 14 | 14 | 100.0 |
| line | true | false | branch |
|---|---|---|---|
| 11 | 1 | 10 | unless $env->{'REQUEST_METHOD'} =~ /^(GET|HEAD)$/ |
| 20 | 1 | 9 | unless my(@checks) = ($self->etag_matches($h, $env), $self->not_modified_since($h, $env)) |
| 23 | 5 | 4 | unless (grep((!$_), @checks)) |
| 26 | 4 | 1 | if ($res->[2]) { } |
| 30 | 3 | 1 | defined $_[0] ? : |
| 46 | 4 | 6 | unless $h->exists('ETag') |
| 52 | 4 | 6 | unless $h->exists('Last-Modified') |