blib/lib/LWP/Simple/Cookies.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 13 | 13 | 100.0 |
branch | 1 | 2 | 50.0 |
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | n/a | ||
total | 19 | 20 | 95.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package LWP::Simple::Cookies; | ||||||
2 | 1 | 1 | 51122 | use strict; | |||
1 | 2 | ||||||
1 | 40 | ||||||
3 | 1 | 1 | 5 | use vars '$VERSION'; | |||
1 | 2 | ||||||
1 | 238 | ||||||
4 | 1 | 1 | 19783 | use LWP::Simple '$ua'; | |||
1 | 253984 | ||||||
1 | 11 | ||||||
5 | |||||||
6 | BEGIN { | ||||||
7 | 1 | 1 | 2579 | $VERSION = 0.01; | |||
8 | } | ||||||
9 | |||||||
10 | sub import { | ||||||
11 | 1 | 1 | 15 | my $pkg = shift; | |||
12 | |||||||
13 | 1 | 3360 | require HTTP::Cookies; | ||||
14 | |||||||
15 | 1 | 50 | 48560 | $ua->cookie_jar( @_ | |||
16 | ? HTTP::Cookies->new( @_ ) | ||||||
17 | : {} ); | ||||||
18 | } | ||||||
19 | |||||||
20 | 1; | ||||||
21 | |||||||
22 | __END__ |