Plan
NAME
Test::Builder::Plan - manages the plan set for the test harness
Test::Builder::NoPlan - manages the pseudo-plan when one isn't set
DESCRIPTION
The Test::Builder::Plan
class manages the plan used by the test harness.
It contains the number of expected tests and formats the headers and footers
used in reporting test results.
Conversely, the Test::Builder::NoPlan
class is used when a plan is not
explicitly set.
NOTE: The Test::Builder::Plan
Test::Builder::NoPlan
classes should not
be used directly. There are only meant to be used internally.
USE
Public Attributes
=over 4
$.expected
The expected number of tests to run.
=back
Object Initialization
=over 4
new()
Returns a new Test::Builder::Plan
or Test::Builder::NoPlan
instance.
=back
Public Methods
=over 4
header()
Returns a string to be used as the header; displayed before any test results.
footer()
Returns a string to be used as the footer; displayed after all tests have been run.
=back
SEE ALSO
ACKNOWLEDGEMENTS
Test::Builder
was largely inspired by chromatic's work on the old
Test::Builder
module for Pugs.
Additionally, Test::Builder
is based on the Perl 5 module of the same name
also written by chromatic <[email protected]> and Michael G. Schwern
<[email protected]>.
COPYRIGHT
Copyright (C) 2011, Kevin Polulak <[email protected]>. Copyright (C) 2015-2016 The Perl6 Community.
This program is distributed under the terms of the Artistic License 2.0.
For further information, please see LICENSE or visit <http://www.perlfoundation.org/attachment/legal/artistic-2_0.txt>.