GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Pipeline::Segment::Tester(3) User Contributed Perl Documentation Pipeline::Segment::Tester(3)

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

  use Pipeline::Segment::Tester;

  my $pst = Pipeline::Segment::Tester->new();
  $pst->test( $segment, $objects, $in, $store );

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

new()
The "new" method constructs a new Pipeline::Segment::Tester object and returns it.
init()
The "init" method is called by the constructor and performs construction time initialization on the object.
test( Pipeline::Segment, [ ARRAY ] )
The "test" method takes a segment object as its first argument, which it will add to its pipeline before dispatch. It also takes an infinite number of additional paramaters that will be added to the store prior to dispatch of the pipeline.

Returns the production of the pipeline.

pipe( [ Pipeline ] )
The "pipe" method gets and sets the Pipeline object that Pipeline::Segment::Tester will use.

James A. Duncan <jduncan@fotango.com>
2004-08-09 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.