Old/Loader/Base.pm

filter: Statementstmt 68.0% 32 / 47 Branchbran 100% 6 / 6 Conditioncond 50.0% 3 / 6 MC/DCmcdc 25.0% 1 / 4 Subroutinesub 31.8% 7 / 22 Podpod 0.0% 0 / 2 totaltotal 56.3% 49 / 87 CC 6 SCAR 8.2
CC
6
Cov
69%
set_global_options
6.2
load
2.0
__ANON__
1.1
CRAP 2.3
« Old.pm ↑ Summary Old/Marshall.pm »
1 package YAML::Old::Loader::Base;
2  
3 32 ▶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 123 ▶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 238 ▶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 180 ▶has numify => default => sub {0};
Subroutine __ANON__: called CC=1 SCAR=0.0
24  
25 279 ▶sub set_global_options {
Subroutine set_global_options: called CC=6 SCAR=18.3
Pod undocumented
26 279 my $self = shift;
27 279 ▶ $self->load_code($YAML::LoadCode || $YAML::UseCode)
Branch: 1 branch
BranchTrueFalseTotal
if defined $YAML::LoadCode or defined $YAML::UseCode 3 276 279
Condition50%3/6
defined $YAML::LoadCode or defined $YAML::UseCode
l!l&&r!l&&!r
03276
$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
28 if defined $YAML::LoadCode or defined $YAML::UseCode;
29 279 ▶ $self->preserve($YAML::Preserve) if defined $YAML::Preserve;
Branch: 1 branch
BranchTrueFalseTotal
if defined $YAML::Preserve 1 278 279
30 279 ▶ $self->numify($YAML::Numify) if defined $YAML::Numify;
Branch: 1 branch
BranchTrueFalseTotal
if defined $YAML::Numify 1 278 279
31 }
32  
33 0 ▶sub load {
Subroutine load: not called CC=1 SCAR=6.9
Pod undocumented
34 0 die 'load() not implemented in this class.';
35 }
36  
37 32 1;
« Old.pm ↑ Summary Old/Marshall.pm »