Declare.pm

filter: Statementstmt 75.7% 25 / 33 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 58.3% 7 / 12 Podpod 100% 5 / 5 totaltotal 74.0% 37 / 50 CC 1 SCAR 3.5
CC
1
Cov
76%
gf
2.0
section
2.0
db
2.0
CRAP 1.4
« Callback.pm ↑ Summary
1 package GrowthForecast::Aggregator::Declare;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use 5.008001;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 our $VERSION = '0.1.1';
6  
7 1 ▶use parent qw(Exporter);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 ▶use GrowthForecast::Aggregator::DB;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use GrowthForecast::Aggregator::DBMulti;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use GrowthForecast::Aggregator::Callback;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 1 our @EXPORT = qw(gf section db db_multi callback);
14  
15 1 our $_SECTION;
16 1 our @_QUERIES;
17  
18 0 ▶sub gf(&) {
Subroutine gf: not called CC=1 SCAR=6.9
Pod documented
19 0 local @_QUERIES;
20 0 $_[0]->();
21 0 return @_QUERIES;
22 }
23  
24 0 ▶sub section($&) {
Subroutine section: not called CC=1 SCAR=6.9
Pod documented
25 0 local $_SECTION = shift;
26 0 $_[0]->();
27 }
28  
29 0 ▶sub db {
Subroutine db: not called CC=1 SCAR=6.9
Pod documented
30 0 push @_QUERIES, GrowthForecast::Aggregator::DB->new(
31 section => $_SECTION,
32 @_,
33 );
34 }
35  
36 0 ▶sub db_multi {
Subroutine db_multi: not called CC=1 SCAR=6.9
Pod documented
37 0 push @_QUERIES, GrowthForecast::Aggregator::DBMulti->new(
38 section => $_SECTION,
39 @_,
40 );
41 }
42  
43 0 ▶sub callback {
Subroutine callback: not called CC=1 SCAR=6.9
Pod documented
44 0 push @_QUERIES, GrowthForecast::Aggregator::Callback->new(
45 section => $_SECTION,
46 @_,
47 );
48 }
49  
50 1 1;
51 __END__
« Callback.pm ↑ Summary