soh-cah-toa/p6-test-builder/lib/Test/Builder/Plan

p6-test-builder src

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. B<NOTE:> The Test::Builder::Plan Test::Builder::NoPlan classes should not be used directly. There are only meant to be used internally.

USE

(head2) Public Attributes
(over) 4
(item) B<$.expected>
The expected number of tests to run.
(head2) Object Initialization
(over) 4
(item) B
Returns a new Test::Builder::Plan or Test::Builder::NoPlan instance.
(head2) Public Methods
(over) 4
(item) B
Returns a string to be used as the header; displayed before any test results.
(item) B
Returns a string to be used as the footer; displayed after all tests have been run.

SEE ALSO

L<http://testanything.org>

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 <chromatic@wgz.org> and Michael G. Schwern <schwern@pobox.com>.

COPYRIGHT

Copyright (C) 2011, Kevin Polulak <kpolulak@gmail.com>. 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>.

Perl 6 Tricks and Treats newsletter

Register to the free newsletter now, and get updates and news.
Email:
Name: