BackPAN/Index/Role/HasCache.pm

filter: Statementstmt 80.0% 8 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod n/a totaltotal 76.9% 10 / 13 CC 1 SCAR 2.9
CC
1
Cov
80%
__ANON__
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« BackPAN/Index/Database.pm ↑ Summary BackPAN/Index/Types.pm »
1 package BackPAN::Index::Role::HasCache;
2  
3 10 ▶use Mouse::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 10 ▶use BackPAN::Index::Types;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 has cache =>
8 is => 'ro',
9 isa => 'App::Cache',
10 required => 1,
11 0 ▶ default => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
12 0 require App::Cache;
13 0 return App::Cache->new({ application => "BackPAN::Index" });
14 }
15 10 ;
16  
17 10 1;
« BackPAN/Index/Database.pm ↑ Summary BackPAN/Index/Types.pm »