Pipeline/Tooling.pm

filter: Statementstmt 100% 51 / 51 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 13 / 13 Podpod n/a totaltotal 100% 64 / 64 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 4 ▶use v5.36;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 package Ekorn::Pipeline::Tooling;
4  
5 4 ▶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 4 ▶use Ekorn::Pipeline::Stop qw(Stop);
Subroutine BEGIN: called CC=1 SCAR=0.0
11 4 ▶use Ekorn::Pipeline::Gather qw(gather);
Subroutine BEGIN: called CC=1 SCAR=0.0
12 4 ▶use Ekorn::Pipeline::Stages::Flow qw(:all);
Subroutine BEGIN: called CC=1 SCAR=0.0
13 4 ▶use Ekorn::Pipeline::Stages::Batch qw(:all);
Subroutine BEGIN: called CC=1 SCAR=0.0
14 4 ▶use Ekorn::Pipeline::Stages::Taps qw(:all);
Subroutine BEGIN: called CC=1 SCAR=0.0
15 4 ▶use Ekorn::Pipeline::Context qw(:all);
Subroutine BEGIN: called CC=1 SCAR=0.0
16 4 ▶use Ekorn::Pipeline::Sources qw(:all);
Subroutine BEGIN: called CC=1 SCAR=0.0
17 4 ▶use Ekorn::Pipeline::Sinks qw(:all);
Subroutine BEGIN: called CC=1 SCAR=0.0
18 4 ▶use Ekorn::Pipeline::Factories qw(:all);
Subroutine BEGIN: called CC=1 SCAR=0.0
19 4 ▶use Ekorn::Pipeline::JSON qw(:all);
Subroutine BEGIN: called CC=1 SCAR=0.0
20 4 ▶use Ekorn::Pipeline::CSV qw(:all);
Subroutine BEGIN: called CC=1 SCAR=0.0
21  
22 4 our $VERSION = 'v0.4.0';
23  
24 4 our %EXPORT_TAGS = (
25 core => [qw(Stop gather)],
26 flow => [
27 qw(take take_first take_last take_single take_if take_while),
28 qw(drop drop_if drop_while),
29 ],
30 batch => [qw(batch collect)],
31 taps => [qw(peek count_into dump_to tee)],
32 context => [qw(result_number result_original)],
33 sources => [qw(from_array from_fh from_file counter)],
34 sinks => [
35 qw(count_items keep keep_all keep_first keep_last keep_single),
36 qw(to_fh to_file),
37 ],
38 json => [qw(from_json from_jsonl to_json to_jsonl)],
39 csv => [qw(from_csv to_csv)],
40 words => [
41 qw(pipeline stage gather source generator yield),
42 qw(sink_one sink_many),
43 ],
44 );
45 4 $EXPORT_TAGS{stages} = [map { @{ $EXPORT_TAGS{$_} } } qw(flow batch taps)];
46  
47 # Every name once: gather is in both :core and :words.
48 4 our @EXPORT_OK = do {
49 4 my %seen;
50 180 grep { !$seen{$_}++ }
51 4 map { @{ $EXPORT_TAGS{$_} } }
52 qw(core stages context sources sinks json csv words);
53 };
54 4 $EXPORT_TAGS{all} = [@EXPORT_OK];
55  
56 4 1;
57  
58 __END__
« Pipeline/Stop.pm ↑ Summary