| blib/lib/LWP/UserAgent/WithCache.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 18 | 22 | 81.8 |
| line | true | false | branch |
|---|---|---|---|
| 22 | 2 | 2 | if (not scalar @_ % 2) { } |
| 26 | 1 | 5 | if exists $lwp_opt{$key} |
| 43 | 0 | 3 | if $request->method ne 'GET' |
| 49 | 3 | 0 | if (defined $obj) |
| 51 | 1 | 2 | if (defined $$obj{'expires'} and $$obj{'expires'} > time) |
| 55 | 2 | 0 | if (defined $$obj{'last_modified'}) |
| 60 | 1 | 1 | if (defined $$obj{'etag'}) |
| 70 | 1 | 1 | if ($res->code eq 304) |
| 75 | 0 | 1 | if ($res->code eq 200) |
| 87 | 1 | 2 | $res->header('Etag') ? : |
| 1 | 2 | $res->expires ? : |