blib/lib/Context/Handle/RV/RefHash.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::RefHash; | ||||||
4 | 2 | 2 | 9 | use base qw/Context::Handle::RV::Scalar/; | |||
2 | 3 | ||||||
2 | 128 | ||||||
5 | |||||||
6 | 2 | 2 | 9 | use strict; | |||
2 | 3 | ||||||
2 | 48 | ||||||
7 | 2 | 2 | 10 | use warnings; | |||
2 | 3 | ||||||
2 | 159 | ||||||
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__ |