Michael G Schwern > Test-Simple-1.005000_006 > TB2::Result

Download:
Test-Simple-1.005000_006.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 1.005000_006   Source  

NAME ^

TB2::Result - A factory to generate results.

SYNOPSIS ^

    use TB2::Result;

    my $result = TB2::Result->new_result(%test_data);

DESCRIPTION ^

A factory to generate results. See TB2::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 = TB2::Result->new_result(%test_data);

new_result() is a method which returns a $result based on your test data.

$result will be a TB2::Result::Base object.

SEE ALSO ^

TB2::Result::Base for the result objects generated.

syntax highlighting: