File Coverage

blib/lib/Data/Focus/Applicative/Const.pm
Criterion Covered Total %
statement 13 13 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 2 2 100.0
total 20 20 100.0


line stmt bran cond sub pod time code
1             package Data::Focus::Applicative::Const;
2 25     25   8649 use strict;
  25         31  
  25         621  
3 25     25   78 use warnings;
  25         28  
  25         500  
4 25     25   72 use parent qw(Data::Focus::Applicative);
  25         26  
  25         112  
5              
6             sub new {
7 2831     2831 1 8266 my ($class, $datum) = @_;
8 2831         8844 return bless \$datum, $class;
9             }
10              
11             sub get_const {
12 3487     3487 1 2318 return ${$_[0]};
  3487         7642  
13             }
14              
15             1;
16             __END__