DWH_File/Value/Undef.pm

filter: Statementstmt 55.5% 15 / 27 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 44.4% 4 / 9 Podpod 0.0% 0 / 5 totaltotal 41.3% 19 / 46 CC 2 SCAR 8.8
CC
2
Cov
50%
new
6.0
from_input
2.0
from_stored
2.0
CRAP 2.4
« DWH_File/Tie/Scalar.pm ↑ Summary DWH_File/Slot.pm »
1 package DWH_File::Value::Undef;
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 ▶ '""' => \&store_string,
Subroutine BEGIN: called CC=1 SCAR=0.0
8 9 fallback => 1;
9  
10 9 @ISA = qw( DWH_File::Value );
11 9 $VERSION = 0.01;
12  
13 0 ▶sub new {
Subroutine new: not called CC=2 SCAR=17.9
Pod undocumented
14 0 my ( $this ) = @_;
15 0 ▶ my $class = ref $this || $this;
Condition0%0/3
ref $this || $this
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $this || $this
ref $this $this
Truth table0%0/3
A || B
A= ref $thisB= $this
ABresult
1X1
011
000
16 0 my $none = '';
17 0 my $self = \$none;
18 0 bless $self, $class;
19 0 return $self;
20 }
21  
22 0 ▶sub from_input {
Subroutine from_input: not called CC=1 SCAR=6.9
Pod undocumented
23 0 my ( $this ) = @_;
24 0 return $this->new;
25 }
26  
27 0 ▶sub from_stored {
Subroutine from_stored: not called CC=1 SCAR=6.9
Pod undocumented
28 0 my ( $this ) = @_;
29 0 return $this->new;
30 }
31  
32 0 ▶sub store_string { '%' }
Subroutine store_string: not called CC=1 SCAR=6.9
Pod undocumented
33  
34 0 ▶sub actual_value { undef }
Subroutine actual_value: not called CC=1 SCAR=6.9
Pod undocumented
35  
36 9 1;
37  
38 __END__
« DWH_File/Tie/Scalar.pm ↑ Summary DWH_File/Slot.pm »