NAME
Test::Builder2::Result - A factory to generate results.
SYNOPSIS
use Test::Builder2::Result;
my $result = Test::Builder2::Result->new_result(%test_data);
DESCRIPTION
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.
Overloading
Result objects are overloaded to return true or false in boolean context to indicate if they passed or failed.
new_result
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.
SEE ALSO
Test::Builder2::Result::Base for the result objects generated.