NAME ^

Test::Builder::TestPlan - class representing the current Test::Builder test plan

SYNOPSIS ^

See Test::Builder.

DESCRIPTION ^

This class contains the details of the test plan for a test run controlled by Test::Builder. You probably will never use this directly.

There are two actually classes here. Test::Builder::TestPlan represents a plan with a number -- a plan where you know how many tests you plan to run. Test::Builder::NullPlan represents a test where you do not know this.

METHODS ^

Both classes support the following methods.

new( args_hash )

Initializes a new object after you create it with new. If you're creating a Test::Builder::TestPlan object, pass an args_hash hash containing an expect key with the number of tests you plan to run. If you're creating a Test::Builder::NullPlan object, do not pass the hash.

header()

Returns a string containing the appropriate TAP-compatible header for this test plan.

footer()

Returns a string containing the appropriate TAP-compatible footer for this test plan.

AUTHOR ^

Written and maintained by chromatic, chromatic at wgz dot org, based on the Perl 6 port he wrote, based on the original Perl 5 version he wrote with ideas from Michael G. Schwern. Please send patches, feedback, and suggestions to the Perl 6 internals mailing list.

COPYRIGHT ^

Copyright (C) 2005-2007, The Perl Foundation.


parrot