| blib/lib/Array/Delegate.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % | 
| statement | 20 | 20 | 100.0 | 
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 6 | 6 | 100.0 | 
| pod | 1 | 1 | 100.0 | 
| total | 27 | 27 | 100.0 | 
| line | stmt | bran | cond | sub | pod | time | code | 
|---|---|---|---|---|---|---|---|
| 1 | package Array::Delegate; | ||||||
| 2 | |||||||
| 3 | 1 | 1 | 83185 | use 5.010000; | |||
| 1 | 6 | ||||||
| 1 | 337 | ||||||
| 4 | 1 | 1 | 155 | use strict; | |||
| 1 | 4 | ||||||
| 1 | 61 | ||||||
| 5 | 1 | 1 | 6 | use warnings; | |||
| 1 | 9 | ||||||
| 1 | 78 | ||||||
| 6 | |||||||
| 7 | our $VERSION = '0.01'; | ||||||
| 8 | |||||||
| 9 | 1 | 1 | 14 | use vars '$AUTOLOAD'; | |||
| 1 | 1 | ||||||
| 1 | 256 | ||||||
| 10 | |||||||
| 11 | sub new { | ||||||
| 12 | 1 | 1 | 1 | 47 | my $class = shift; | ||
| 13 | 1 | 3 | my @self = @{+shift}; | ||||
| 1 | 3 | ||||||
| 14 | 1 | 14 | bless \@self, $class; | ||||
| 15 | }; | ||||||
| 16 | |||||||
| 17 | sub AUTOLOAD { | ||||||
| 18 | 2 | 2 | 12384 | my $method = (split '::', $AUTOLOAD)[-1]; | |||
| 19 | 2 | 11 | [map { $_->$method(@_) } @{+shift}]; | ||||
| 4 | 46 | ||||||
| 2 | 14 | ||||||
| 20 | } | ||||||
| 21 | |||||||
| 22 | 1; | ||||||
| 23 | __END__ |