blib/lib/Context/Handle/RV/RefArray.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 9 | 14 | 64.2 |
branch | n/a | ||
condition | n/a | ||
subroutine | 3 | 5 | 60.0 |
pod | 0 | 1 | 0.0 |
total | 12 | 20 | 60.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | #!/usr/bin/perl | ||||||
2 | |||||||
3 | package Context::Handle::RV::RefArray; | ||||||
4 | 2 | 2 | 10 | use base qw/Context::Handle::RV::Scalar/; | |||
2 | 4 | ||||||
2 | 131 | ||||||
5 | |||||||
6 | 2 | 2 | 9 | use strict; | |||
2 | 3 | ||||||
2 | 53 | ||||||
7 | 2 | 2 | 8 | use warnings; | |||
2 | 4 | ||||||
2 | 152 | ||||||
8 | |||||||
9 | sub new { | ||||||
10 | 0 | 0 | 0 | my $class = shift; | |||
11 | 0 | my $code = shift; | |||||
12 | |||||||
13 | 0 | 0 | $class->SUPER::new( sub { \@{ $code->() } } ); | ||||
0 | |||||||
0 | |||||||
14 | } | ||||||
15 | |||||||
16 | __PACKAGE__; | ||||||
17 | |||||||
18 | __END__ |