I18n/Storage.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 4 totaltotal 0.0% 0 / 27 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
init
2.0
store
2.0
CRAP 2.0
1  
2 package Object::I18n::Storage;
3 use strict;
4 use warnings;
5  
6 sub new {
7 my $class = shift;
8 my ($data) = @_;# from $obj->setter($data);
9  
10 my $obj = $class->init;
11 $obj->store($data);
12 return $obj;
13 }
14  
15 sub init {
16 my $class = shift;
17 # This is where you set up special requirements like user, state, etc.
18 # Does language go here too?
19 bless {};
20 }
21  
22 sub store {
23 my $self = shift;
24 $self->{data} = shift;
25 }
26  
27 sub fetch {
28 my $self = shift;
29 $self->{data};
30 }
31  
32 1;