blib/lib/LWP/Simple/WithCache.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 7 | 9 | 77.7 |
branch | n/a | ||
condition | n/a | ||
subroutine | 3 | 3 | 100.0 |
pod | n/a | ||
total | 10 | 12 | 83.3 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package LWP::Simple::WithCache; | ||||||
2 | |||||||
3 | 4 | 4 | 214717 | use strict; | |||
4 | 238 | ||||||
4 | 195 | ||||||
4 | 4 | 4 | 2853 | use LWP::Simple; | |||
4 | 354519 | ||||||
4 | 35 | ||||||
5 | 4 | 4 | 9149 | use LWP::UserAgent::WithCache; | |||
0 | |||||||
0 | |||||||
6 | our $VERSION = 0.03; | ||||||
7 | |||||||
8 | $LWP::Simple::ua = new LWP::UserAgent::WithCache; | ||||||
9 | $LWP::Simple::ua->agent("LWP::Simple::WithCache/$VERSION"); | ||||||
10 | $LWP::Simple::FULL_LWP = 1; | ||||||
11 | |||||||
12 | 1; | ||||||
13 | |||||||
14 | __END__ |