Ref/GCLOCK.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 19 / 19 CC 2 SCAR 2.9
CC
2
Cov
100%
_hit
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Ref/CLOCK.pm ↑ Summary Ref.pm »
1 package Cache::Ref::GCLOCK;
2 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 $Cache::Ref::GCLOCK::AUTHORITY = 'cpan:NUFFIN';
4 }
5 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 $Cache::Ref::GCLOCK::VERSION = '0.05'; # TRIAL
7 }
8 # ABSTRACT: GCLOCK cache replacement algorithm
9  
10 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 1 extends qw(Cache::Ref);
15  
16 1 with qw(Cache::Ref::CLOCK::Base);
17  
18 3029 ▶sub _hit {
Subroutine _hit: called CC=2 SCAR=6.9
19 3029 my ( $self, $e ) = @_;
20  
21 3029 $_->[0]++ for @$e;
22 }
23  
24 1 __PACKAGE__->meta->make_immutable;
25  
26 1 __PACKAGE__;
27  
28  
29 # ex: set sw=4 et:
30  
31  
32 __END__
« Ref/CLOCK.pm ↑ Summary Ref.pm »