Pipeline/Tooling.pm

filter: Statementstmt 100% 44 / 44 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 11 / 11 Podpod n/a totaltotal 100% 55 / 55 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Pipeline/Stop.pm ↑ Summary
1 1 ▶use v5.36;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 package Ekorn::Pipeline::Tooling;
4  
5 1 ▶use Exporter qw(import);
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 # What each module exports, by default or on request, imported here, so
8 # Exporter can export it again. t/23-tooling.t checks that each tag below
9 # holds every name its module exports.
10 1 ▶use Ekorn::Pipeline::Stop qw(Stop);
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use Ekorn::Pipeline::Gather qw(gather);
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use Ekorn::Pipeline::Stages::Flow qw(:all);
Subroutine BEGIN: called CC=1 SCAR=0.0
13 1 ▶use Ekorn::Pipeline::Stages::Batch qw(:all);
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 ▶use Ekorn::Pipeline::Stages::Taps qw(:all);
Subroutine BEGIN: called CC=1 SCAR=0.0
15 1 ▶use Ekorn::Pipeline::Sources qw(:all);
Subroutine BEGIN: called CC=1 SCAR=0.0
16 1 ▶use Ekorn::Pipeline::Sinks qw(:all);
Subroutine BEGIN: called CC=1 SCAR=0.0
17 1 ▶use Ekorn::Pipeline::Factories qw(:all);
Subroutine BEGIN: called CC=1 SCAR=0.0
18 1 ▶use Ekorn::Pipeline::JSON qw(:all);
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 1 our %EXPORT_TAGS = (
21 core => [qw(Stop gather)],
22 flow => [
23 qw(take take_first take_last take_single take_if take_while),
24 qw(drop drop_if drop_while),
25 ],
26 batch => [qw(batch collect)],
27 taps => [qw(peek count_into dump_to)],
28 sources => [qw(from_array from_fh from_file counter)],
29 sinks => [
30 qw(count_items keep keep_all keep_first keep_last keep_single),
31 qw(to_fh to_file),
32 ],
33 json => [qw(from_json from_jsonl to_json to_jsonl)],
34 words => [
35 qw(pipeline stage gather source generator yield),
36 qw(sink_one sink_many),
37 ],
38 );
39 1 $EXPORT_TAGS{stages} = [map { @{ $EXPORT_TAGS{$_} } } qw(flow batch taps)];
40  
41 # Every name once: gather is in both :core and :words.
42 1 our @EXPORT_OK = do {
43 1 my %seen;
44 40 grep { !$seen{$_}++ }
45 1 map { @{ $EXPORT_TAGS{$_} } } qw(core stages sources sinks json words);
46 };
47 1 $EXPORT_TAGS{all} = [@EXPORT_OK];
48  
49 1 1;
50  
51 __END__
« Pipeline/Stop.pm ↑ Summary