YAML/Loader/Base.pm

filter: Statementstmt 67.3% 33 / 49 Branchbran 100% 6 / 6 Conditioncond 83.3% 5 / 6 MC/DCmcdc 50.0% 2 / 4 Subroutinesub 30.4% 7 / 23 Podpod 0.0% 0 / 2 totaltotal 58.8% 53 / 90 CC 6 SCAR 7.8
CC
6
Cov
72%
set_global_options
6.0
load
2.0
__ANON__
1.1
CRAP 2.2
« YAML.pm ↑ Summary YAML/Marshall.pm »
1 package YAML::Loader::Base;
2  
3 36 ▶use YAML::Mo;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 5 ▶has load_code => default => sub {0};
Subroutine __ANON__: called CC=1 SCAR=0.0
6 149 ▶has preserve => default => sub {0};
Subroutine __ANON__: called CC=1 SCAR=0.0
7 0 ▶has stream => default => sub {''};
Subroutine __ANON__: not called CC=1 SCAR=1.2
8 1 ▶has document => default => sub {0};
Subroutine __ANON__: called CC=1 SCAR=0.0
9 0 ▶has line => default => sub {0};
Subroutine __ANON__: not called CC=1 SCAR=1.2
10 0 ▶has documents => default => sub {[]};
Subroutine __ANON__: not called CC=1 SCAR=1.2
11 0 ▶has lines => default => sub {[]};
Subroutine __ANON__: not called CC=1 SCAR=1.2
12 0 ▶has eos => default => sub {0};
Subroutine __ANON__: not called CC=1 SCAR=1.2
13 0 ▶has done => default => sub {0};
Subroutine __ANON__: not called CC=1 SCAR=1.2
14 0 ▶has anchor2node => default => sub {{}};
Subroutine __ANON__: not called CC=1 SCAR=1.2
15 0 ▶has level => default => sub {0};
Subroutine __ANON__: not called CC=1 SCAR=1.2
16 280 ▶has offset => default => sub {[]};
Subroutine __ANON__: called CC=1 SCAR=0.0
17 0 ▶has preface => default => sub {''};
Subroutine __ANON__: not called CC=1 SCAR=1.2
18 0 ▶has content => default => sub {''};
Subroutine __ANON__: not called CC=1 SCAR=1.2
19 0 ▶has indent => default => sub {0};
Subroutine __ANON__: not called CC=1 SCAR=1.2
20 0 ▶has major_version => default => sub {0};
Subroutine __ANON__: not called CC=1 SCAR=1.2
21 0 ▶has minor_version => default => sub {0};
Subroutine __ANON__: not called CC=1 SCAR=1.2
22 0 ▶has inline => default => sub {''};
Subroutine __ANON__: not called CC=1 SCAR=1.2
23 214 ▶has numify => default => sub {0};
Subroutine __ANON__: called CC=1 SCAR=0.0
24 0 ▶has zero_indent => default => sub {[]};
Subroutine __ANON__: not called CC=1 SCAR=1.2
25  
26 321 ▶sub set_global_options {
Subroutine set_global_options: called CC=6 SCAR=17.9
Pod undocumented
27 321 my $self = shift;
28 321 ▶ $self->load_code($YAML::LoadCode || $YAML::UseCode)
Branch: 1 branch
BranchTrueFalseTotal
if defined $YAML::LoadCode or defined $YAML::UseCode 12 309 321
Condition83%5/6
defined $YAML::LoadCode or defined $YAML::UseCode
l!l&&r!l&&!r
111309
$YAML::LoadCode || $YAML::UseCode
l!l&&r!l&&!r
1110
MC/DC100%2/2
defined $YAML::LoadCode or defined $YAML::UseCode
defined $YAML::LoadCode defined $YAML::UseCode
MC/DC0%0/2
$YAML::LoadCode || $YAML::UseCode
$YAML::LoadCode $YAML::UseCode
Truth table100%3/3
A or B
A= defined $YAML::LoadCodeB= defined $YAML::UseCode
ABresult
1X1
011
000
Truth table66%2/3
A || B
A= $YAML::LoadCodeB= $YAML::UseCode
ABresult
1X1
011
000
29 if defined $YAML::LoadCode or defined $YAML::UseCode;
30 321 ▶ $self->preserve($YAML::Preserve) if defined $YAML::Preserve;
Branch: 1 branch
BranchTrueFalseTotal
if defined $YAML::Preserve 1 320 321
31 321 ▶ $self->numify($YAML::Numify) if defined $YAML::Numify;
Branch: 1 branch
BranchTrueFalseTotal
if defined $YAML::Numify 1 320 321
32 }
33  
34 0 ▶sub load {
Subroutine load: not called CC=1 SCAR=6.9
Pod undocumented
35 0 die 'load() not implemented in this class.';
36 }
37  
38 36 1;
« YAML.pm ↑ Summary YAML/Marshall.pm »