blib/lib/MarpaX/ESLIF/JSON/Encoder.pm

filter: Statementstmt 66.6% 12 / 18 Branchbran n/a Conditioncond 0.0% 0 / 9 MC/DCmcdc 0.0% 0 / 4 Subroutinesub 50.0% 3 / 6 Podpod n/a totaltotal 40.5% 15 / 37 CC 4 SCAR 22.7
CC
4
Cov
44%
__ANON__
20.0
_ALLOCATE
2.0
_EQ
2.0
CRAP 9.7
« blib/lib/MarpaX/ESLIF/Base.pm ↑ Summary blib/lib/MarpaX/ESLIF/JSON/Decoder.pm »
1 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 2 ▶use warnings FATAL => 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package MarpaX::ESLIF::JSON::Encoder;
5 2 ▶use parent qw/MarpaX::ESLIF::Grammar/;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 #
8 # Base required class methods
9 #
10 0 ▶sub _ALLOCATE { return \&MarpaX::ESLIF::JSON::Encoder::allocate }
Subroutine _ALLOCATE: not called CC=1 SCAR=6.9
11 0 ▶sub _EQ {
Subroutine _EQ: not called CC=1 SCAR=6.9
12 0 ▶ return sub {
Subroutine __ANON__: not called CC=4 SCAR=30.0
13 0 my ($class, $args_ref, $eslif, $strict) = @_;
14  
15 0 my $definedStrict = defined($strict);
16 0 my $_definedStrict = defined($args_ref->[1]);
17  
18 return
19 0 ▶ ($eslif == $args_ref->[0])
Condition0%0/9
$eslif == $args_ref->[0] && ($definedStrict && $_definedStrict && $strict == $args_ref->[1])
!ll&&!rl&&r
000
$definedStrict and $_definedStrict and $strict == $args_ref->[1]
!ll&&!rl&&r
000
$definedStrict and $_definedStrict
!ll&&!rl&&r
000
MC/DC0%0/4
$eslif == $args_ref->[0] && ($definedStrict && $_definedStrict && $strict == $args_ref->[1])
$eslif == $args_ref->[0] $definedStrict $_definedStrict $strict == $args_ref->[1]
Truth table0%0/5
A && B and C and D
A= $eslif == $args_ref->[0]B= $definedStrictC= $_definedStrictD= $strict == $args_ref->[1]
ABCDresult
0XXX0
10XX0
110X0
11100
11111
20 &&
21 ($definedStrict && $_definedStrict && ($strict == $args_ref->[1]))
22 }
23 0 }
24  
25 # ABSTRACT: ESLIF's JSON encoder interface
26  
27 2 our $AUTHORITY = 'cpan:JDDPAUSE'; # AUTHORITY
28  
29 2 our $VERSION = '6.0.35.1'; # VERSION
30  
31  
32  
33 2 1;
34  
35 __END__
« blib/lib/MarpaX/ESLIF/Base.pm ↑ Summary blib/lib/MarpaX/ESLIF/JSON/Decoder.pm »