DWH_File/Work.pm

filter: Statementstmt 100% 28 / 28 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 0.0% 0 / 2 totaltotal 92.5% 37 / 40 CC 2 SCAR 2.1
CC
2
Cov
97%
wipe
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« DWH_File/Tie/Array/Node.pm ↑ Summary
1 package DWH_File::Work;
2  
3 9 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 9 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 9 ▶use vars qw( @ISA $VERSION );
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 9 ▶use DWH_File::Kernel;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 9 ▶use DWH_File::Tie::Hash;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 9 @ISA = qw( DWH_File::Tie::Hash );
11 9 $VERSION = 0.01;
12  
13 13 ▶sub TIEHASH {
Subroutine TIEHASH: called CC=1 SCAR=0.0
14 13 my $class = shift;
15 13 my $kernel = DWH_File::Kernel->new( @_ );
16 13 my $self = delete $kernel->{ work };
17 13 $kernel->{ cache }->decache( $self );
18 13 return $self;
19 }
20  
21 13 ▶sub tie_reference {
Subroutine tie_reference: called CC=1 SCAR=0.0
Pod undocumented
22 13 my $this = shift;
23 13 $_[ 5 ] = 'DWH_File::Tie::Hash';
24 13 return $this->SUPER::tie_reference( @_ );
25 }
26  
27 13 ▶sub wipe {
Subroutine wipe: called CC=2 SCAR=7.2
Pod undocumented
28 13 ▶ if ( $_[ 0 ]->{ kernel }{ alive } ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($_[0]{"kernel"}{"alive"}) 13 0 13
29 13 $_[ 0 ]->{ kernel }->wipe;
30 }
31 }
32  
33 9 1;
34  
35 __END__
« DWH_File/Tie/Array/Node.pm ↑ Summary