blib/lib/App/RecordStream/Aggregator/LastRecord.pm

filter: Statementstmt 78.5% 22 / 28 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 6 / 9 Podpod 0.0% 0 / 4 totaltotal 68.2% 28 / 41 CC 1 SCAR 2.9
CC
1
Cov
79%
combine
2.0
long_usage
2.0
argct
2.0
CRAP 1.3
« blib/lib/App/RecordStream/Aggregator/Percentile.pm ↑ Summary blib/lib/App/RecordStream/Aggregator/First.pm »
1 package App::RecordStream::Aggregator::LastRecord;
2  
3 6 our $VERSION = "4.0.23";
4  
5 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 6 ▶use App::RecordStream::Aggregator::InjectInto;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 6 ▶use App::RecordStream::DomainLanguage::Registry;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 6 ▶use base qw(App::RecordStream::Aggregator::InjectInto);
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 sub combine
14 {
15 0 ▶ my $this = shift;
Subroutine combine: not called CC=1 SCAR=6.9
Pod undocumented
16 0 my $cookie = shift;
17 0 my $record = shift;
18  
19 0 return $record;
20 }
21  
22 sub short_usage
23 {
24 1 ▶ return "last record seen";
Subroutine short_usage: called CC=1 SCAR=0.0
Pod undocumented
25 }
26  
27 sub long_usage
28 {
29 0 ▶ return <<EOF;
Subroutine long_usage: not called CC=1 SCAR=6.9
Pod undocumented
30 Usage: last_record
31 Last record seen.
32 EOF
33 }
34  
35 sub argct
36 {
37 0 ▶ return 0;
Subroutine argct: not called CC=1 SCAR=6.9
Pod undocumented
38 }
39  
40 6 App::RecordStream::Aggregator->register_implementation('lastrecord', __PACKAGE__);
41 6 App::RecordStream::Aggregator->register_implementation('lastrec', __PACKAGE__);
42  
43 6 App::RecordStream::DomainLanguage::Registry::register_ctor(__PACKAGE__, 'lastrecord');
44 6 App::RecordStream::DomainLanguage::Registry::register_ctor(__PACKAGE__, 'lastrec');
45  
46 6 1;
« blib/lib/App/RecordStream/Aggregator/Percentile.pm ↑ Summary blib/lib/App/RecordStream/Aggregator/First.pm »