DWH_File/Tie/Array/Node.pm

filter: Statementstmt 100% 29 / 29 Branchbran n/a Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 8 / 8 Podpod 0.0% 0 / 3 totaltotal 84.4% 38 / 45 CC 2 SCAR 2.1
CC
2
Cov
94%
new
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« DWH_File/Value.pm ↑ Summary DWH_File/Work.pm »
1 package DWH_File::Tie::Array::Node;
2  
3 9 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 9 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 9 ▶use vars qw( @ISA $VERSION );
Subroutine BEGIN: called CC=1 SCAR=0.0
6 use overload
7 9 ▶ '""' => \&to_string,
Subroutine BEGIN: called CC=1 SCAR=0.0
8 9 fallback => 1;
9  
10 9 ▶use DWH_File::Slot;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 9 @ISA = qw( DWH_File::Slot );
13 9 $VERSION = 0.01;
14  
15 253 ▶sub new {
Subroutine new: called CC=2 SCAR=7.2
Pod undocumented
16 253 my ( $this ) = @_;
17 253 ▶ my $class = ref( $this ) || $this;
Condition33%1/3
ref $this || $this
l!l&&r!l&&!r
02530
MC/DC0%0/2
ref $this || $this
ref $this $this
Truth table33%1/3
A || B
A= ref $thisB= $this
ABresult
1X1
011
000
18 253 my $self = {};
19 253 bless $self, $class;
20 253 return $self;
21 }
22  
23 162 ▶sub from_stored {
Subroutine from_stored: called CC=1 SCAR=0.0
Pod undocumented
24 162 my ( $this, $kernel, $data, $subscript ) = @_;
25 162 my $self = $this->new;
26 162 $self->{ value } = DWH_File::Value::Factory->from_stored( $kernel, $data );
27 162 $self->{ subscript } = $subscript;
28 162 return $self;
29 }
30  
31 255 ▶sub to_string { "$_[ 0 ]->{ value }" }
Subroutine to_string: called CC=1 SCAR=0.0
Pod undocumented
32  
33 9 1;
34  
35 __END__
« DWH_File/Value.pm ↑ Summary DWH_File/Work.pm »