File/Driver/Storable.pm

filter: Statementstmt 100% 16 / 16 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 66.6% 2 / 3 totaltotal 92.3% 24 / 26 CC 2 SCAR 2.9
CC
2
Cov
94%
freeze
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« File/Driver.pm ↑ Summary
1 package MojoX::Session::Store::File::Driver::Storable;
2  
3 2 ▶use base 'MojoX::Session::Store::File::Driver';
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 2 ▶use Storable qw(store retrieve);
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
8 1 my $class = shift;
9  
10 1 bless $class->SUPER::new(@_), $class;
11 }
12  
13 2 ▶sub freeze {
Subroutine freeze: called CC=2 SCAR=7.0
Pod documented
14 2 my $self = shift;
15  
16 2 my($file, $ref) = @_;
17 2 ▶ $ref = \$ref unless ref $ref;
Branch: 1 branch
BranchTrueFalseTotal
unless ref $ref 0 2 2
18  
19 2 store $ref, $file;
20 }
21  
22 2 ▶sub thaw {
Subroutine thaw: called CC=1 SCAR=0.0
Pod documented
23 2 my $self = shift;
24  
25 2 my $file = shift;
26  
27 2 retrieve $file;
28 }
29  
30 2 1;
« File/Driver.pm ↑ Summary