blib/lib/App/RecordStream/Aggregator/InjectInto/Subrefs.pm

filter: Statementstmt 100% 26 / 26 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 0.0% 0 / 4 totaltotal 89.4% 34 / 38 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/App/RecordStream/Stream/Base.pm ↑ Summary blib/lib/App/RecordStream/Aggregator/MapReduce/Subrefs.pm »
1 package App::RecordStream::Aggregator::InjectInto::Subrefs;
2  
3 9 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 9 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 9 ▶use App::RecordStream::Aggregator::InjectInto;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 9 ▶use base qw(App::RecordStream::Aggregator::InjectInto);
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 sub new
11 {
12 45 ▶ my $class = shift;
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
13 45 my $initial = shift;
14 45 my $combine = shift;
15 45 my $squish = shift;
16  
17 45 my $this =
18 {
19 'initial' => $initial,
20 'combine' => $combine,
21 'squish' => $squish,
22 };
23  
24 45 bless $this, $class;
25  
26 45 return $this;
27 }
28  
29 sub initial
30 {
31 15 ▶ my $this = shift;
Subroutine initial: called CC=1 SCAR=0.0
Pod undocumented
32  
33 15 return $this->{'initial'}->();
34 }
35  
36 sub combine
37 {
38 55 ▶ my $this = shift;
Subroutine combine: called CC=1 SCAR=0.0
Pod undocumented
39  
40 55 return $this->{'combine'}->(@_);
41 }
42  
43 sub squish
44 {
45 15 ▶ my $this = shift;
Subroutine squish: called CC=1 SCAR=0.0
Pod undocumented
46  
47 15 return $this->{'squish'}->(@_);
48 }
49  
50 9 1;
« blib/lib/App/RecordStream/Stream/Base.pm ↑ Summary blib/lib/App/RecordStream/Aggregator/MapReduce/Subrefs.pm »