Declare/ZDCF/Encoder/DumpEval.pm

filter: Statementstmt 100% 28 / 28 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 100% 2 / 2 totaltotal 100% 38 / 38 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Declare/DSL.pm ↑ Summary Declare/ZDCF/Encoder/JSON.pm »
1 package ZMQ::Declare::ZDCF::Encoder::DumpEval;
2 {
3 1 $ZMQ::Declare::ZDCF::Encoder::DumpEval::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 Data::Dumper qw(Dumper);
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 \(Dumper(shift));
15 }
16  
17 3 ▶sub decode {
Subroutine decode: called CC=1 SCAR=0.0
Pod documented
18 3 my $self = shift;
19 3 my $textref = shift;
20 3 my $out;
21 SCOPE: {
22 1 ▶ no strict 'vars';
Subroutine BEGIN: called CC=1 SCAR=0.0
23 3 $out = eval $$textref;
24 }
25 3 return $out;
26 }
27  
28 1 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
29 1 __PACKAGE__->meta->make_immutable;
30  
31 __END__
« Declare/DSL.pm ↑ Summary Declare/ZDCF/Encoder/JSON.pm »