blib/lib/Data/Enumerator/Add.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 13 | 13 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 4 | 4 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 17 | 18 | 94.4 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Data::Enumerator::Add; | ||||||
2 | 1 | 1 | 5 | use strict; | |||
1 | 3 | ||||||
1 | 39 | ||||||
3 | 1 | 1 | 5 | use warnings; | |||
1 | 2 | ||||||
1 | 38 | ||||||
4 | 1 | 1 | 5 | use base qw/Data::Enumerator::Base/; | |||
1 | 3 | ||||||
1 | 190 | ||||||
5 | |||||||
6 | sub each { | ||||||
7 | 1 | 1 | 0 | 3 | my ( $self ,$f) = @_; | ||
8 | 1 | 2 | my ($a,$b) = @{ $self->object }; | ||||
1 | 8 | ||||||
9 | 1 | 4 | return ($a->each($f),$b->each($f)); | ||||
10 | } | ||||||
11 | 1; |