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

p6-test-builder src

NAME

Test::Builder::Output - handles output operations for Test::Builder objects

DESCRIPTION

The purpose of the Test::Builder::Output class is to manage all output operations for Test::Builder objects. It is generally used for reporting test results and displaying diagnostics for test failures. B<NOTE:> The Test::Builder::Output class should not be used directly. It is only meant to be used internally.

USE

(head2) Public Attributes
(over) 4
(item) I<$.stdout>
Specifies the filehandle that should be used for normal output such as reporting individual test results and the final pass/fail status. Defaults to $*OUT .
(item) I<$.stderr>
Specifies the filehandle that should be used for diagnostic messages such as test failures and other fatal errors. Defaults to $*ERR .
(head2) Object Initialization
(over) 4
(item) B
Returns a new Test::Builder::Output instance.
(head2) Public Methods
(over) 4
(item) B
Writes the string given in $msg to the filehandle specified by $.stdout . The write() method is generally used for normal output such as reporting test results.
(item) B
Writes the string given in $msg to the filehandle specified by $.stderr . The diagnostic messages displayed by diag() are distinct from other output in that they are always prefixed with an octothorpe ( # ).

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: