« blib/lib/App/RecordStream/Deaggregator/Unarray.pm
↑ Summary
blib/lib/App/RecordStream/Executor.pm »
| 1 | package App::RecordStream::Aggregator::FirstRecord; | ||||||||||
| 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 | 2 | ▶ | my $this = shift; | ||||||||
|
Subroutine
combine: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||
| 16 | 2 | my $cookie = shift; | |||||||||
| 17 | 2 | my $record = shift; | |||||||||
| 18 | |||||||||||
| 19 | 2 | ▶ | return $record unless ( defined $cookie ); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 20 | |||||||||||
| 21 | 1 | return $cookie; | |||||||||
| 22 | } | ||||||||||
| 23 | |||||||||||
| 24 | sub short_usage | ||||||||||
| 25 | { | ||||||||||
| 26 | 1 | ▶ | return "first record"; | ||||||||
|
Subroutine
short_usage: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 27 | } | ||||||||||
| 28 | |||||||||||
| 29 | sub long_usage | ||||||||||
| 30 | { | ||||||||||
| 31 | 0 | ▶ | return <<EOF; | ||||||||
|
Subroutine
long_usage: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 32 | Usage: first | ||||||||||
| 33 | Returns the first record. | ||||||||||
| 34 | EOF | ||||||||||
| 35 | } | ||||||||||
| 36 | |||||||||||
| 37 | sub argct | ||||||||||
| 38 | { | ||||||||||
| 39 | 1 | ▶ | return 0; | ||||||||
|
Subroutine
argct: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 40 | } | ||||||||||
| 41 | |||||||||||
| 42 | 6 | App::RecordStream::Aggregator->register_implementation('firstrecord', __PACKAGE__); | |||||||||
| 43 | 6 | App::RecordStream::Aggregator->register_implementation('firstrec', __PACKAGE__); | |||||||||
| 44 | |||||||||||
| 45 | 6 | App::RecordStream::DomainLanguage::Registry::register_ctor(__PACKAGE__, 'firstrecord'); | |||||||||
| 46 | 6 | App::RecordStream::DomainLanguage::Registry::register_ctor(__PACKAGE__, 'firstrec'); | |||||||||
| 47 | |||||||||||
| 48 | 6 | 1; | |||||||||