Test::Builder2::Result - A factory to generate results.
use Test::Builder2::Result; my $result = Test::Builder2::Result->new_result(%test_data);
A factory to generate results. See Test::Builder2::Result::Base for information about the real result objects.
An object to store the result of a test. Used to keep test history, format the results of tests, and build up diagnostics about a test.
NOTE: Results are currently in a high state of flux with regard to directives, what determines if it "passed" or "failed", their internal structure and this even being a factory.
Result objects are overloaded to return true or false in boolean context to indicate if they passed or failed.
my $result = Test::Builder2::Result->new_result(%test_data);
new_result() is a method which returns a $result based on your test data.
$result will be a Test::Builder2::Result::Base object.
Test::Builder2::Result::Base for the result objects generated.
To install Test::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Simple
CPAN shell
perl -MCPAN -e shell install Test::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.