blib/lib/Context/Handle/RV/RefCode.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::RefCode; | ||||||
4 | 2 | 2 | 10 | use base qw/Context::Handle::RV::Scalar/; | |||
2 | 3 | ||||||
2 | 148 | ||||||
5 | |||||||
6 | 2 | 2 | 10 | use strict; | |||
2 | 2 | ||||||
2 | 68 | ||||||
7 | 2 | 2 | 10 | use warnings; | |||
2 | 2 | ||||||
2 | 151 | ||||||
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__ |