File Coverage

blib/lib/Filter/ExtractSource/CodeObj.pm
Criterion Covered Total %
statement 9 12 75.0
branch n/a
condition 1 3 33.3
subroutine 2 3 66.6
pod 0 2 0.0
total 12 20 60.0


line stmt bran cond sub pod time code
1             package Filter::ExtractSource::CodeObj;
2              
3             sub new {
4 1     1 0 2 my $invocant = shift;
5 1   33     8 my $class = ref($invocant) || $invocant;
6 1         2 my $self = {};
7 1         3 bless $self,$class;
8 1         4 return $self;
9             }
10              
11             sub merge {
12 1     1 0 2 my $self = shift;
13 1         2 push @{$self->{lines}},shift;
  1         7  
14 1         4 $self->{end} = shift;
15             }
16              
17             sub DESTROY {
18 0     0     my $self = shift;
19 0           print join "",@{$self->{lines}},$self->{end};
  0            
20             }
21              
22             1;