Treemap/Input.pm

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