Gideon/Registry.pm

filter: Statementstmt 28.5% 4 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 40.0% 2 / 5 totaltotal 25.0% 6 / 24 CC 1 SCAR 6.9
CC
1
Cov
29%
register_store
2.0
register_cache
2.0
get_store
2.0
CRAP 2.0
« Gideon/Meta/Attribute/Trait/Inflate/DateTime.pm ↑ Summary Gideon/Plugin.pm »
1 package Gideon::Registry;
2 {
3 1 $Gideon::Registry::VERSION = '0.0.3';
4 }
5  
6 #ABSTRACT: Gideon Store Registry
7  
8 1 my %stores;
9 my $cache;
10  
11 0 ▶sub register_store {
Subroutine register_store: not called CC=1 SCAR=6.9
Pod documented
12 0 my ( $class, $name, $resource ) = @_;
13 0 $stores{$name} = $resource;
14 0 return $resource;
15 }
16  
17 0 ▶sub register_cache {
Subroutine register_cache: not called CC=1 SCAR=6.9
Pod documented
18 0 my ( $class, $resource ) = @_;
19 0 $cache = $resource;
20 0 return $resource;
21 }
22  
23 0 ▶sub get_store {
Subroutine get_store: not called CC=1 SCAR=6.9
Pod undocumented
24 0 my ( $class, $name ) = @_;
25 0 return $stores{$name};
26 }
27  
28 0 ▶sub get_cache {
Subroutine get_cache: not called CC=1 SCAR=6.9
Pod undocumented
29 0 return $cache;
30 }
31  
32 0 ▶sub has_cache {
Subroutine has_cache: not called CC=1 SCAR=6.9
Pod undocumented
33 0 return defined $cache;
34 }
35  
36 1 1;
37  
38 __END__
« Gideon/Meta/Attribute/Trait/Inflate/DateTime.pm ↑ Summary Gideon/Plugin.pm »