File Coverage

blib/lib/App/RecordStream/Aggregator/LastRecord.pm
Criterion Covered Total %
statement 15 22 68.1
branch n/a
condition n/a
subroutine 5 9 55.5
pod 0 4 0.0
total 20 35 57.1


line stmt bran cond sub pod time code
1             package App::RecordStream::Aggregator::LastRecord;
2              
3             our $VERSION = "4.0.25";
4              
5 5     5   2893 use strict;
  5         12  
  5         123  
6 5     5   21 use warnings;
  5         16  
  5         109  
7              
8 5     5   21 use App::RecordStream::Aggregator::InjectInto;
  5         9  
  5         89  
9 5     5   41 use App::RecordStream::DomainLanguage::Registry;
  5         12  
  5         116  
10              
11 5     5   37 use base qw(App::RecordStream::Aggregator::InjectInto);
  5         20  
  5         967  
12              
13             sub combine
14             {
15 0     0 0   my $this = shift;
16 0           my $cookie = shift;
17 0           my $record = shift;
18              
19 0           return $record;
20             }
21              
22             sub short_usage
23             {
24 0     0 0   return "last record seen";
25             }
26              
27             sub long_usage
28             {
29 0     0 0   return <
30             Usage: last_record
31             Last record seen.
32             EOF
33             }
34              
35             sub argct
36             {
37 0     0 0   return 0;
38             }
39              
40             App::RecordStream::Aggregator->register_implementation('lastrecord', __PACKAGE__);
41             App::RecordStream::Aggregator->register_implementation('lastrec', __PACKAGE__);
42              
43             App::RecordStream::DomainLanguage::Registry::register_ctor(__PACKAGE__, 'lastrecord');
44             App::RecordStream::DomainLanguage::Registry::register_ctor(__PACKAGE__, 'lastrec');
45              
46             1;