blib/lib/BackPAN/Index/Role/HasCache.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 6 | 6 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 2 | 2 | 100.0 |
pod | n/a | ||
total | 8 | 8 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package BackPAN::Index::Role::HasCache; | ||||||
2 | |||||||
3 | 14 | 14 | 6436833 | use Mouse::Role; | |||
14 | 60449 | ||||||
14 | 113 | ||||||
4 | |||||||
5 | 14 | 14 | 4335 | use BackPAN::Index::Types; | |||
14 | 40 | ||||||
14 | 1062 | ||||||
6 | |||||||
7 | has cache => | ||||||
8 | is => 'ro', | ||||||
9 | isa => 'App::Cache', | ||||||
10 | required => 1, | ||||||
11 | default => sub { | ||||||
12 | require App::Cache; | ||||||
13 | return App::Cache->new({ application => "BackPAN::Index" }); | ||||||
14 | } | ||||||
15 | ; | ||||||
16 | |||||||
17 | 1; |