1Pipeline::Segment::TestUesre(r3)Contributed Perl DocumenPtiapteiloinne::Segment::Tester(3)
2
3
4

NAME

6       Pipeline::Segment::Tester - a test wrapper for a Pipeline::Segment
7

SYNOPSIS

9         use Pipeline::Segment::Tester;
10
11         my $pst = Pipeline::Segment::Tester->new();
12         $pst->test( $segment, $objects, $in, $store );
13

DESCRIPTION

15       "Pipeline::Segment::Tester" exists to make testing segments easier.
16       Segments will often rely on having multiple other objects in a pipeline
17       store to be used properly, which makes testing a bit icky, as the store
18       and the pipeline need to be set up to handle testing of a segment.
19       Pipeline::Segment::Tester removes this requirement by creating the
20       pipeline and adding stuff to the store for you before, and making your
21       life easier.
22

METHODS

24       new()
25           The "new" method constructs a new Pipeline::Segment::Tester object
26           and returns it.
27
28       init()
29           The "init" method is called by the constructor and performs
30           construction time initialization on the object.
31
32       test( Pipeline::Segment, [ ARRAY ] )
33           The "test" method takes a segment object as its first argument,
34           which it will add to its pipeline before dispatch.  It also takes
35           an infinite number of additional paramaters that will be added to
36           the store prior to dispatch of the pipeline.
37
38           Returns the production of the pipeline.
39
40       pipe( [ Pipeline ] )
41           The "pipe" method gets and sets the Pipeline object that
42           Pipeline::Segment::Tester will use.
43

AUTHOR

45       James A. Duncan <jduncan@fotango.com>
46
47
48
49perl v5.36.0                      2023-01-20      Pipeline::Segment::Tester(3)
Impressum