| blib/lib/LWP/UserAgent/WithCache.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 19 | 22 | 86.3 |
| line | true | false | branch |
|---|---|---|---|
| 22 | 2 | 2 | if (scalar @_ % 2) { } |
| 26 | 1 | 5 | if exists $lwp_opt{$key} |
| 43 | 0 | 4 | if $request->method ne "GET" |
| 49 | 3 | 1 | 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 | 2 | if ($res->code eq 304) |
| 75 | 2 | 0 | if ($res->code eq 200) |
| 87 | 1 | 4 | $res->header('Etag') ? : |
| 1 | 4 | $res->expires ? : |