blib/lib/LWP/MemberMixin.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 5 | 5 | 100.0 |
branch | 2 | 2 | 100.0 |
condition | n/a | ||
subroutine | 1 | 1 | 100.0 |
pod | n/a | ||
total | 8 | 8 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package LWP::MemberMixin; | ||||||
2 | $LWP::MemberMixin::VERSION = '6.29'; | ||||||
3 | sub _elem { | ||||||
4 | 176 | 176 | 264 | my $self = shift; | |||
5 | 176 | 251 | my $elem = shift; | ||||
6 | 176 | 288 | my $old = $self->{$elem}; | ||||
7 | 176 | 100 | 356 | $self->{$elem} = shift if @_; | |||
8 | 176 | 598 | return $old; | ||||
9 | } | ||||||
10 | |||||||
11 | 1; | ||||||
12 | |||||||
13 | __END__ |