| 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
MC/DC0%0/2
ref $invocant || $invocant
ref $invocant
$invocant
Truth table33%1/3
A || B
A= ref $invocantB= $invocant
| |||||||||||||||||||||
| 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; | |||||||||||||||||||