blib/lib/Code/TidyAll/CacheModel/Shared.pm

filter: Statementstmt 93.7% 15 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 100% 1 / 1 totaltotal 91.3% 21 / 23 CC 1 SCAR 1.5
CC
1
Cov
94%
remove
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« lib/Code/TidyAll/Role/HasIgnore.pm ↑ Summary blib/lib/Code/TidyAll/Plugin/GenericTransformer.pm »
1 package Code::TidyAll::CacheModel::Shared;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 extends 'Code::TidyAll::CacheModel';
9  
10 1 our $VERSION = '0.85';
11  
12 24 ▶sub _build_cache_key {
Subroutine _build_cache_key: called CC=1 SCAR=0.0
13 24 my $self = shift;
14 24 return $self->_sig(
15 [
16 $self->SUPER::_build_cache_key,
17 $self->file_contents
18 ]
19 );
20 }
21  
22 16 ▶sub _build_cache_value {
Subroutine _build_cache_value: called CC=1 SCAR=0.0
23 16 return 1;
24 }
25  
26 0 ▶sub remove {
Subroutine remove: not called CC=1 SCAR=6.9
Pod documented
27 0 return;
28 }
29  
30 1 1;
31  
32 # ABSTRACT: Shared cache model for Code::TidyAll
33  
34 __END__
« lib/Code/TidyAll/Role/HasIgnore.pm ↑ Summary blib/lib/Code/TidyAll/Plugin/GenericTransformer.pm »