DWH_File/Slot.pm

filter: Statementstmt 100% 25 / 25 Branchbran 100% 4 / 4 Conditioncond 83.3% 5 / 6 MC/DCmcdc 75.0% 3 / 4 Subroutinesub 100% 7 / 7 Podpod 0.0% 0 / 3 totaltotal 89.8% 44 / 49 CC 5 SCAR 7.4
CC
5
Cov
97%
retain
3.0
release
3.0
BEGIN
1.0
CRAP 2.1
« DWH_File/Value/Undef.pm ↑ Summary DWH_File/Registry.pm »
1 package DWH_File::Slot;
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  
7 9 ▶use UNIVERSAL;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 9 @ISA = qw( );
10 9 $VERSION = 0.01;
11  
12 145 ▶sub set_value {
Subroutine set_value: called CC=1 SCAR=0.0
Pod undocumented
13 145 my ( $self, $value ) = @_;
14 145 $self->release;
15 145 $self->{ value } = $value;
16 145 $self->retain;
17 }
18  
19 172 ▶sub release {
Subroutine release: called CC=3 SCAR=11.0
Pod undocumented
20 172 my ( $self ) = @_;
21 172 ▶ if ( $self->{ value } and UNIVERSAL::isa( $self->{ value },
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{"value"} and UNIVERSAL::isa($self->{"value"}, "DWH_File::Reference")) 2 170 172
Condition100%3/3
$self->{"value"} and UNIVERSAL::isa($self->{"value"}, "DWH_File::Reference")
!ll&&!rl&&r
142282
MC/DC100%2/2
$self->{"value"} and UNIVERSAL::isa($self->{"value"}, "DWH_File::Reference")
$self->{"value"} UNIVERSAL::isa($self->{"value"}, "DWH_File::Reference")
Truth table100%3/3
A and B
A= $self->{"value"}B= UNIVERSAL::isa($self->{"value"}, "DWH_File::Reference")
ABresult
0X0
100
111
22 'DWH_File::Reference' ) ) {
23 2 $self->{ value }->cut_refcount;
24 }
25 }
26  
27 195 ▶sub retain {
Subroutine retain: called CC=3 SCAR=11.0
Pod undocumented
28 195 my ( $self ) = @_;
29 195 ▶ if ( $self->{ value } and UNIVERSAL::isa( $self->{ value },
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{"value"} and UNIVERSAL::isa($self->{"value"}, "DWH_File::Reference")) 27 168 195
Condition66%2/3
$self->{"value"} and UNIVERSAL::isa($self->{"value"}, "DWH_File::Reference")
!ll&&!rl&&r
016827
MC/DC50%1/2
$self->{"value"} and UNIVERSAL::isa($self->{"value"}, "DWH_File::Reference")
$self->{"value"} UNIVERSAL::isa($self->{"value"}, "DWH_File::Reference")
Truth table66%2/3
A and B
A= $self->{"value"}B= UNIVERSAL::isa($self->{"value"}, "DWH_File::Reference")
ABresult
0X0
100
111
30 'DWH_File::Reference' ) ) {
31 27 $self->{ value }->bump_refcount;
32 }
33 }
34  
35 9 1;
36  
37 __END__
« DWH_File/Value/Undef.pm ↑ Summary DWH_File/Registry.pm »