blib/lib/DBIx/Squirrel/Stop.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 100% 19 / 19 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/DBIx/Squirrel/Stages/Taps.pm ↑ Summary blib/lib/DBIx/Squirrel/Tooling.pm »
1 33 ▶use v5.36;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 package DBIx::Squirrel::Stop;
4  
5 33 ▶use Exporter qw(import);
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 33 ▶use Ekorn::Pipeline::Stop qw(Stop);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 33 our $VERSION = 'v4.3.1';
10  
11 # A plain re-export of Ekorn::Pipeline::Stop's function, from
12 # DBIx::Squirrel's own list of them, imported from it by name, so a name
13 # Ekorn::Pipeline drops fails here, as the module loads, and one it adds
14 # isn't exported until it's listed here; and is_stop, DBIx::Squirrel's
15 # own, so a stage can tell a stop without naming its class (roadmap
16 # 2026-0060).
17 33 our @EXPORT = qw(Stop); ## no critic (Modules::ProhibitAutomaticExportation)
18 33 our @EXPORT_OK = (@EXPORT, qw(is_stop));
19 33 our %EXPORT_TAGS = (all => \@EXPORT_OK);
20  
21 # Return true if what's given is a stop: an Ekorn::Pipeline::Stop, or
22 # a subclass's, however it was thrown.
23 9 ▶sub is_stop ($error) {
Subroutine is_stop: called CC=1 SCAR=0.0
Pod documented
24 9 return $error isa Ekorn::Pipeline::Stop;
25 }
26  
27 33 1;
28 __END__
« blib/lib/DBIx/Squirrel/Stages/Taps.pm ↑ Summary blib/lib/DBIx/Squirrel/Tooling.pm »