Treemap/Output.pm

filter: Statementstmt 100% 22 / 22 Branchbran n/a Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 84.8% 28 / 33 CC 2 SCAR 3.0
CC
2
Cov
92%
new
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« Treemap/Input.pm ↑ Summary Treemap/Input/XML.pm »
1 package Treemap::Output;
2  
3 1 ▶use 5.006;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 require Exporter;
9  
10 1 our @ISA = qw( Exporter );
11 1 our @EXPORT_OK = ( );
12 1 our @EXPORT = qw( );
13 1 our $VERSION = '0.01';
14  
15  
16 # ------------------------------------------
17 # Methods:
18 # ------------------------------------------
19  
20  
21 # ------------------------------------------
22 # new() - Create and return new Treemap
23 # object:
24 # ------------------------------------------
25 sub new
26 1 ▶{
Subroutine new: called CC=2 SCAR=7.2
Pod undocumented
27 1 my $proto = shift;
28 1 ▶ my $class = ref( $proto ) || $proto;
Condition33%1/3
ref $proto || $proto
l!l&&r!l&&!r
010
MC/DC0%0/2
ref $proto || $proto
ref $proto $proto
Truth table33%1/3
A || B
A= ref $protoB= $proto
ABresult
1X1
011
000
29 1 my $self = {
30 @_, # Allow user to override parameters
31 };
32  
33 1 bless $self, $class;
34 1 return $self;
35 }
36  
37 1 1;
38  
39 __END__
« Treemap/Input.pm ↑ Summary Treemap/Input/XML.pm »