File Coverage

blib/lib/DWH_File/Value/Undef.pm
Criterion Covered Total %
statement 12 24 50.0
branch n/a
condition 0 3 0.0
subroutine 4 9 44.4
pod 0 5 0.0
total 16 41 39.0


line stmt bran cond sub pod time code
1             package DWH_File::Value::Undef;
2              
3 9     9   53 use warnings;
  9         19  
  9         313  
4 9     9   49 use strict;
  9         15  
  9         335  
5 9     9   48 use vars qw( @ISA $VERSION );
  9         17  
  9         672  
6             use overload
7 9         69 '""' => \&store_string,
8 9     9   46 fallback => 1;
  9         27  
9              
10             @ISA = qw( DWH_File::Value );
11             $VERSION = 0.01;
12              
13             sub new {
14 0     0 0   my ( $this ) = @_;
15 0   0       my $class = ref $this || $this;
16 0           my $none = '';
17 0           my $self = \$none;
18 0           bless $self, $class;
19 0           return $self;
20             }
21              
22             sub from_input {
23 0     0 0   my ( $this ) = @_;
24 0           return $this->new;
25             }
26              
27             sub from_stored {
28 0     0 0   my ( $this ) = @_;
29 0           return $this->new;
30             }
31              
32 0     0 0   sub store_string { '%' }
33              
34 0     0 0   sub actual_value { undef }
35              
36             1;
37              
38             __END__