Old/Loader/Base.pm

filter: Statementstmt 63.4% 26 / 41 Branchbran 100% 2 / 2 Conditioncond 50.0% 3 / 6 MC/DCmcdc 25.0% 1 / 4 Subroutinesub 25.0% 5 / 20 Podpod 0.0% 0 / 2 totaltotal 49.3% 37 / 75 SCAR 15.7
CC
4
Cov
63%
set_global_options
4.4
load
2.0
__ANON__
1.1
CRAP 4.8
« Old/Marshall.pm ↑ Summary Old/Tag.pm »
1 package YAML::Old::Loader::Base;
2  
3 26 ▶use YAML::Old::Mo;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 3 ▶has load_code => default => sub {0};
Subroutine __ANON__: called CC=1 SCAR=0.0
6 0 ▶has stream => default => sub {''};
Subroutine __ANON__: not called CC=1 SCAR=1.2
7 2 ▶has document => default => sub {0};
Subroutine __ANON__: called CC=1 SCAR=0.0
8 0 ▶has line => default => sub {0};
Subroutine __ANON__: not called CC=1 SCAR=1.2
9 0 ▶has documents => default => sub {[]};
Subroutine __ANON__: not called CC=1 SCAR=1.2
10 0 ▶has lines => default => sub {[]};
Subroutine __ANON__: not called CC=1 SCAR=1.2
11 0 ▶has eos => default => sub {0};
Subroutine __ANON__: not called CC=1 SCAR=1.2
12 0 ▶has done => default => sub {0};
Subroutine __ANON__: not called CC=1 SCAR=1.2
13 0 ▶has anchor2node => default => sub {{}};
Subroutine __ANON__: not called CC=1 SCAR=1.2
14 0 ▶has level => default => sub {0};
Subroutine __ANON__: not called CC=1 SCAR=1.2
15 218 ▶has offset => default => sub {[]};
Subroutine __ANON__: called CC=1 SCAR=0.0
16 0 ▶has preface => default => sub {''};
Subroutine __ANON__: not called CC=1 SCAR=1.2
17 0 ▶has content => default => sub {''};
Subroutine __ANON__: not called CC=1 SCAR=1.2
18 0 ▶has indent => default => sub {0};
Subroutine __ANON__: not called CC=1 SCAR=1.2
19 0 ▶has major_version => default => sub {0};
Subroutine __ANON__: not called CC=1 SCAR=1.2
20 0 ▶has minor_version => default => sub {0};
Subroutine __ANON__: not called CC=1 SCAR=1.2
21 0 ▶has inline => default => sub {''};
Subroutine __ANON__: not called CC=1 SCAR=1.2
22  
23 sub set_global_options {
24 260 ▶ my $self = shift;
Subroutine set_global_options: called CC=4 SCAR=14.9
Pod undocumented
25 260 ▶ $self->load_code($YAML::LoadCode || $YAML::UseCode)
Branch: 1 branch
BranchTrueFalseTotal
if defined $YAML::LoadCode or defined $YAML::UseCode 3 257 260
Condition50%3/6
defined $YAML::LoadCode or defined $YAML::UseCode
l!l&&r!l&&!r
03257
$YAML::LoadCode || $YAML::UseCode
l!l&&r!l&&!r
030
MC/DC50%1/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 table66%2/3
A or B
A= defined $YAML::LoadCodeB= defined $YAML::UseCode
ABresult
1X1
011
000
Truth table33%1/3
A || B
A= $YAML::LoadCodeB= $YAML::UseCode
ABresult
1X1
011
000
26 if defined $YAML::LoadCode or defined $YAML::UseCode;
27 }
28  
29 sub load {
30 0 ▶ die 'load() not implemented in this class.';
Subroutine load: not called CC=1 SCAR=6.9
Pod undocumented
31 }
32  
33 26 1;
« Old/Marshall.pm ↑ Summary Old/Tag.pm »