ExtractSource/CodeObj.pm

filter: Statementstmt 76.9% 10 / 13 Branchbran n/a Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 66.6% 2 / 3 Podpod 0.0% 0 / 2 totaltotal 56.5% 13 / 23 CC 2 SCAR 5.8
CC
2
Cov
69%
new
2.1
DESTROY
2.0
merge
1.0
CRAP 1.8
↑ Summary ExtractSource.pm »
1 package Filter::ExtractSource::CodeObj;
2  
3 1 ▶sub new {
Subroutine new: called CC=2 SCAR=7.2
Pod undocumented
4 1 my $invocant = shift;
5 1 ▶ my $class = ref($invocant) || $invocant;
Condition33%1/3
ref $invocant || $invocant
l!l&&r!l&&!r
010
MC/DC0%0/2
ref $invocant || $invocant
ref $invocant $invocant
Truth table33%1/3
A || B
A= ref $invocantB= $invocant
ABresult
1X1
011
000
6 1 my $self = {};
7 1 bless $self,$class;
8 1 return $self;
9 }
10  
11 1 ▶sub merge {
Subroutine merge: called CC=1 SCAR=0.0
Pod undocumented
12 1 my $self = shift;
13 1 push @{$self->{lines}},shift;
14 1 $self->{end} = shift;
15 }
16  
17 0 ▶sub DESTROY {
Subroutine DESTROY: not called CC=1 SCAR=6.9
18 0 my $self = shift;
19 0 print join "",@{$self->{lines}},$self->{end};
20 }
21  
22 1 1;
↑ Summary ExtractSource.pm »