Test::Builder::Output - handles output operations for Test::Builder objects
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.
(head2) Public Attributes
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 .
Specifies the filehandle that should be used for diagnostic messages such as
test failures and other fatal errors.
Defaults to $*ERR .
(head2) Object Initialization
Returns a new Test::Builder::Output instance.
(head2) Public Methods
Writes the string given in $msg to the filehandle specified by $.stdout .
The write() method is generally used for normal output such as reporting
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 ( # ).
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@example.com> and Michael G. Schwern
Copyright (C) 2011, Kevin Polulak <firstname.lastname@example.org>.
This program is distributed under the terms of the Artistic License 2.0.
For further information, please see LICENSE or visit