The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Test::Proto::Test - container for test and test-related information

SYNOPSIS

        Test::Proto::Test->new(sub{return $_[0]=~/\w/;})->run('Content!'); # ok

This is a minimal test object class for use in subclasses of Test::Proto::Base. It stores the codered It returns 1 or the result or the test if it failed. Coderefs should ideally return a Test::Proto::Fail object if they fail, but this is not enforced.

METHODS

new

Create a new test. The first argument should be the code to be run. Supply the thing being tested later.

run

Execute the test on the argument.

OTHER INFORMATION

For author, version, bug reports, support, etc, please see Test::Proto.