Declare/ZDCF/Encoder/Storable.pm

filter: Statementstmt 100% 22 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 100% 2 / 2 totaltotal 100% 31 / 31 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Declare/ZDCF/Encoder/JSON.pm ↑ Summary
1 package ZMQ::Declare::ZDCF::Encoder::Storable;
2 {
3 1 $ZMQ::Declare::ZDCF::Encoder::Storable::VERSION = '0.03';
4 }
5 1 ▶use 5.008001;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 ▶use parent 'ZMQ::Declare::ZDCF::Encoder';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 ▶use Storable qw(nfreeze thaw);
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 3 ▶sub encode {
Subroutine encode: called CC=1 SCAR=0.0
Pod documented
13 3 my $self = shift;
14 3 return \(nfreeze(shift));
15 }
16  
17 3 ▶sub decode {
Subroutine decode: called CC=1 SCAR=0.0
Pod documented
18 3 my $self = shift;
19 3 return thaw(${shift()});
20 }
21  
22 1 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
23 1 __PACKAGE__->meta->make_immutable;
24  
25 __END__
« Declare/ZDCF/Encoder/JSON.pm ↑ Summary