blib/lib/Poet/Cache.pm

filter: Statementstmt 100% 28 / 28 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 34 / 34 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Poet/Moose.pm ↑ Summary blib/lib/Poet/Mason/Plugin.pm »
1 package Poet::Cache; ## no critic (Moose::RequireMakeImmutable)
2 7 $Poet::Cache::VERSION = '0.16';
3 8 ▶use Poet qw($conf $poet);
Subroutine BEGIN: called CC=1 SCAR=0.0
4 8 ▶use Method::Signatures::Simple;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 8 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 7 extends 'CHI';
8  
9 8 ▶method initialize_caching () {
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine initialize_caching: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
10 7 my $default_config =
11 { defaults => { driver => 'File', root_dir => $poet->data_path("cache") } };
12 7 my $config = $conf->get_hash( 'cache' => $default_config );
13 7 __PACKAGE__->config($config);
14 7 }
15  
16 7 1;
17  
18 __END__
« blib/lib/Poet/Moose.pm ↑ Summary blib/lib/Poet/Mason/Plugin.pm »