blib/lib/MarpaX/ESLIF/JSON.pm

filter: Statementstmt 71.4% 15 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 57.1% 4 / 7 Podpod 100% 3 / 3 totaltotal 70.9% 22 / 31 CC 1 SCAR 3.6
CC
1
Cov
71%
new
2.0
encode
2.0
decode
2.0
CRAP 1.4
« blib/lib/MarpaX/ESLIF/Value.pm ↑ Summary blib/lib/MarpaX/ESLIF/RegexCallout.pm »
1 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use warnings FATAL => 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package MarpaX::ESLIF::JSON;
5 1 ▶use MarpaX::ESLIF::JSON::Encoder;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use MarpaX::ESLIF::JSON::Decoder;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 # ABSTRACT: ESLIF's JSON interface
9  
10 1 our $AUTHORITY = 'cpan:JDDPAUSE'; # AUTHORITY
11  
12 1 our $VERSION = '6.0.35.1'; # VERSION
13  
14  
15  
16 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod documented
17 0 my $class = shift;
18  
19 0 return bless { encoder => MarpaX::ESLIF::JSON::Encoder->new(@_), decoder => MarpaX::ESLIF::JSON::Decoder->new(@_) }, $class
20 }
21  
22  
23 0 ▶sub encode {
Subroutine encode: not called CC=1 SCAR=6.9
Pod documented
24 0 my ($self, $value) = @_;
25  
26 0 return $self->{encoder}->encode($value)
27 }
28  
29  
30 0 ▶sub decode {
Subroutine decode: not called CC=1 SCAR=6.9
Pod documented
31 0 my ($self, $string, %options) = @_;
32  
33 0 return $self->{decoder}->decode($string, %options)
34 }
35  
36  
37 1 1;
38  
39 __END__
« blib/lib/MarpaX/ESLIF/Value.pm ↑ Summary blib/lib/MarpaX/ESLIF/RegexCallout.pm »