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 10 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 10 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 10 ▶use App::RecordStream::Aggregator::InjectInto;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 10 ▶use base qw(App::RecordStream::Aggregator::InjectInto);
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 sub new
11 46 ▶{
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
12 46 my $class = shift;
13 46 my $initial = shift;
14 46 my $combine = shift;
15 46 my $squish = shift;
16  
17 46 my $this =
18 {
19 'initial' => $initial,
20 'combine' => $combine,
21 'squish' => $squish,
22 };
23  
24 46 bless $this, $class;
25  
26 46 return $this;
27 }
28  
29 sub initial
30 16 ▶{
Subroutine initial: called CC=1 SCAR=0.0
Pod undocumented
31 16 my $this = shift;
32  
33 16 return $this->{'initial'}->();
34 }
35  
36 sub combine
37 58 ▶{
Subroutine combine: called CC=1 SCAR=0.0
Pod undocumented
38 58 my $this = shift;
39  
40 58 return $this->{'combine'}->(@_);
41 }
42  
43 sub squish
44 16 ▶{
Subroutine squish: called CC=1 SCAR=0.0
Pod undocumented
45 16 my $this = shift;
46  
47 16 return $this->{'squish'}->(@_);
48 }
49  
50 10 1;
« blib/lib/App/RecordStream/Stream/Base.pm ↑ Summary blib/lib/App/RecordStream/Aggregator/MapReduce/Subrefs.pm »