Labels/base.pm

filter: Statementstmt 36.3% 4 / 11 Branchbran 0.0% 0 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 1 / 2 Podpod 0.0% 0 / 1 totaltotal 22.7% 5 / 22 CC 5 SCAR 32.3
CC
5
Cov
21%
new
30.0
BEGIN
1.0
CRAP 25.2
« Labels/Layout/Simple.pm ↑ Summary Labels/Producer.pm »
1  
2 package PDF::Labels::base;
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5  
6 0 ▶sub new {
Subroutine new: not called CC=5 SCAR=34.0
Pod undocumented
7  
8 0 ▶ my $class = ref($_[0]) ? ref(shift) : shift;
Branch: 1 branch
BranchTrueFalseTotal
ref $_[0] ? : 0 0 0
9 0 ▶ my $opts = ref($_[0]) ? $_[0] : {@_};
Branch: 1 branch
BranchTrueFalseTotal
ref $_[0] ? : 0 0 0
10  
11 0 my $self = bless {}, $class;
12  
13 map {
14 0 UNIVERSAL::can( $self, $_ ) ?
15 $self->$_( $opts->{$_} )
16 0 ▶ : $self->{$_}=$opts->{$_};
Branch: 1 branch
BranchTrueFalseTotal
UNIVERSAL::can($self, $_) ? : 0 0 0
17 } keys %$opts;
18  
19 0 ▶ $self->_new if UNIVERSAL::can($self, "_new");
Branch: 1 branch
BranchTrueFalseTotal
if UNIVERSAL::can($self, "_new") 0 0 0
20  
21 0 return $self;
22  
23 }
24  
25  
26 1 1;
27  
« Labels/Layout/Simple.pm ↑ Summary Labels/Producer.pm »