Pipelin...::Tester(3)
π NAME π
Pipeline::Segment::Tester β a test wrapper for a Pipeline::Segment, bestie. That's literally it, that's the whole vibe β¨
π¦ SYNOPSIS π¦
okay so here's how you summon it:
use Pipeline::Segment::Tester;
my $pst = Pipeline::Segment::Tester->new();
$pst->test( $segment, $objects, $in, $store );
no cap, that's the whole thing π«Ά
πΈ DESCRIPTION πΈ
So Pipeline::Segment::Tester exists for one extremely valid reason: making testing segments easier. That's the mission. That's the assignment. And it ate π
Here's the tea tho β segments will often rely on having multiple other objects chillin' in a pipeline store to be used properly. Which makes testing a bit icky π like genuinely, because the store AND the pipeline both need to be set up just to handle testing of a single segment. So much setup. So much yikes.
Pipeline::Segment::Tester removes this requirement entirely by creating the pipeline and adding stuff to the store for you before you even get there, and making your life easier. Main character energy fr fr π
β¨ METHODS β¨
π new()
The new method constructs a new Pipeline::Segment::Tester object and returns it. Fresh object, fresh start, iconic behavior π
π init()
The init method is called by the constructor and performs construction time initialization on the object. It's the behind-the-scenes bestie doing the work so you don't have to π
π§ test( Pipeline::Segment, [ ARRAY ] )
The test method takes a segment object as its first argument, which it will add to its pipeline before dispatch. She's getting prepped, she's getting placed, she's ready π
It also takes an infinite number of additional parameters that will be added to the store prior to dispatch of the pipeline. Infinite. Unlimited. Go wild, bestie, the store can hold it all β¨
Returns the production of the pipeline.
heads up: those extra params get dropped into the store before dispatch, so timing matters and she's already handled it for you π«Ά
β pipe( [ Pipeline ] )
The pipe method gets and sets the Pipeline object that Pipeline::Segment::Tester will use. Get it, set it, whatever you need β she's flexible like that π
π AUTHOR π
James A. Duncan <jduncan@fotango.com> β the legend who wrote this, we stan π
okay that's the whole page, ily, go test your segments and slay πβ¨
this was brought to you by perl v5.42.0, dated 2025-07-25, and yeah the page header is Pipelin...::Tester(3) because Perl manpage titles love a dramatic truncation moment π
π¦ where this page comes from
- fedora 43: perl-Pipeline 3.12-51.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms