Remember/DBM.pm

filter: Statementstmt 91.6% 22 / 24 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod 100% 2 / 2 totaltotal 88.5% 31 / 35 CC 2 SCAR 3.2
CC
2
Cov
88%
new
2.0
dbm
2.0
BEGIN
1.0
CRAP 1.4
« Remember/YAML.pm ↑ Summary Remember/POE.pm »
1 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package Data::Remember::DBM;
5 {
6 1 $Data::Remember::DBM::VERSION = '0.140490';
7 }
8 1 ▶use base qw/ Data::Remember::Memory /;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 # ABSTRACT: a long-term memory brain plugin for Data::Remember
10  
11 1 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use DBM::Deep;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14  
15 1 ▶sub new {
Subroutine new: called CC=2 SCAR=7.0
Pod documented
16 1 my $class = shift;
17 1 my %args = @_;
18  
19 croak 'You must specify a "file" to store the data in.'
20 1 ▶ unless $args{file};
Branch: 1 branch
BranchTrueFalseTotal
unless $args{"file"} 0 1 1
21  
22 1 bless { brain => DBM::Deep->new( $args{file} ) }, $class;
23 }
24  
25  
26 0 ▶sub dbm {
Subroutine dbm: not called CC=1 SCAR=6.9
Pod documented
27 0 my $self = shift;
28 0 return $self->{brain};
29 }
30  
31  
32 1 1;
33  
34 __END__
« Remember/YAML.pm ↑ Summary Remember/POE.pm »