blib/lib/DBM/Deep/Sector.pm

filter: Statementstmt 95.6% 22 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 10 / 12 Podpod 0.0% 0 / 7 totaltotal 76.1% 32 / 42 CC 1 SCAR 0.8
CC
1
Cov
96%
load
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« blib/lib/DBM/Deep/Sector/File/Null.pm ↑ Summary blib/lib/DBM/Deep/Sector/File/Data.pm »
1 package DBM::Deep::Sector;
2  
3 47 ▶use 5.006_000;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 47 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 47 ▶use warnings FATAL => 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 47 ▶use Scalar::Util ();
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 sub new {
11 25942 ▶ my $self = bless $_[1], $_[0];
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
12 25942 Scalar::Util::weaken( $self->{engine} );
13 25942 $self->_init;
14 25942 return $self;
15 }
16  
17 ▶sub _init {}
Subroutine _init: not called CC=1 SCAR=0.0
18 #sub clone { die "clone must be implemented in a child class" }
19 sub clone {
20 26 ▶ my $self = shift;
Subroutine clone: called CC=1 SCAR=0.0
Pod undocumented
21 26 return ref($self)->new({
22 engine => $self->engine,
23 type => $self->type,
24 data => $self->data,
25 });
26 }
27  
28  
29 209353 ▶sub engine { $_[0]{engine} }
Subroutine engine: called CC=1 SCAR=0.0
Pod undocumented
30 116757 ▶sub offset { $_[0]{offset} }
Subroutine offset: called CC=1 SCAR=0.0
Pod undocumented
31 2905 ▶sub type { $_[0]{type} }
Subroutine type: called CC=1 SCAR=0.0
Pod undocumented
32 8219 ▶sub staleness { $_[0]{staleness} }
Subroutine staleness: called CC=1 SCAR=0.0
Pod undocumented
33  
34 0 ▶sub load { die "load must be implemented in a child class" }
Subroutine load: not called CC=1 SCAR=6.9
Pod undocumented
35  
36 47 1;
37 __END__
« blib/lib/DBM/Deep/Sector/File/Null.pm ↑ Summary blib/lib/DBM/Deep/Sector/File/Data.pm »