File Coverage

blib/lib/Data/Encoder/Storable.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod 0 3 0.0
total 21 24 87.5


line stmt bran cond sub pod time code
1             package Data::Encoder::Storable;
2              
3 1     1   352 use strict;
  1         2  
  1         30  
4 1     1   6 use warnings;
  1         1  
  1         40  
5 1     1   7 use Storable;
  1         1  
  1         113  
6              
7             sub new {
8 1     1 0 582 my ($class) = @_;
9 1         4 bless \my $obj, __PACKAGE__;
10             }
11              
12             sub encode {
13 1     1 0 5 my ($self, $stuff, @args) = @_;
14 1         7 Storable::nfreeze($stuff);
15             }
16              
17             sub decode {
18 1     1 0 376 my ($self, $stuff, @args) = @_;
19 1         4 Storable::thaw($stuff);
20             }
21              
22             1;
23             __END__