| 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
MC/DC0%0/2
ref $proto || $proto
ref $proto
$proto
Truth table33%1/3
A || B
A= ref $protoB= $proto
| |||||||||||||||||||||
| 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__ | ||||||||||||||||||||