Specs/base/sheet.pm

filter: Statementstmt 47.0% 8 / 17 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 20.0% 2 / 10 Podpod 0.0% 0 / 8 totaltotal 27.0% 10 / 37 CC 2 SCAR 9.3
CC
2
Cov
42%
new
6.0
type
2.0
sheet_width
2.0
CRAP 2.5
« Specs/base/brand.pm ↑ Summary Specs/Avery.pm »
1  
2 package Paper::Specs::base::sheet;
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 ▶use vars qw($VERSION);
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 $VERSION=0.01;
7  
8 0 ▶sub new {
Subroutine new: not called CC=2 SCAR=17.9
Pod undocumented
9 0 my $class=shift;
10 0 ▶ bless \$class, $class unless ref($class);
Branch: 1 branch
BranchTrueFalseTotal
unless ref $class 0 0 0
11 }
12  
13 0 ▶sub type { return 'sheet' }
Subroutine type: not called CC=1 SCAR=6.9
Pod undocumented
14  
15 0 ▶sub sheet_width { Paper::Specs::convert ($_[0]->specs->{'sheet_width'}, $_[0]->specs->{'units'}) }
Subroutine sheet_width: not called CC=1 SCAR=6.9
Pod undocumented
16 0 ▶sub sheet_height { Paper::Specs::convert ($_[0]->specs->{'sheet_height'}, $_[0]->specs->{'units'}) }
Subroutine sheet_height: not called CC=1 SCAR=6.9
Pod undocumented
17 0 ▶sub sheet_size { return ($_[0]->sheet_width, $_[0]->sheet_height) }
Subroutine sheet_size: not called CC=1 SCAR=6.9
Pod undocumented
18  
19 0 ▶sub specs {
Subroutine specs: not called CC=1 SCAR=6.9
Pod undocumented
20 0 die "$_[0] does not have any specs defined!\n";
21 }
22  
23 0 ▶sub code { $_[0]->specs->{'code'} }
Subroutine code: not called CC=1 SCAR=6.9
Pod undocumented
24 0 ▶sub description { $_[0]->specs->{'description'} }
Subroutine description: not called CC=1 SCAR=6.9
Pod undocumented
25  
26 1 1;
27  
« Specs/base/brand.pm ↑ Summary Specs/Avery.pm »