Test2-Api-Interceptresult-Event

Test2::API::InterceptResult::Event(3p) Perl Programmers Reference Guide

Test2-Api-Interceptresult-Event

Test2::API::InterceptResult::Event(3p) Perl Programmers Reference Guide # Test2::API::InterceptResult::Event(3p) Perl Programmers Reference Guide NNAAMMEE # Test2::API::InterceptResult::Event - Representation of an event for use in testing other test tools. DDEESSCCRRIIPPTTIIOONN # "intercept { ... }" from Test2::API returns an instance of Test2::API::InterceptResult which is a blessed arrayref of Test2::API::InterceptResult::Event objects. This POD documents the methods of these events, which are mainly provided for you to use when testing your test tools. SSYYNNOOPPSSIISS # use Test2::V0; use Test2::API qw/intercept/; my $events = intercept { ok(1, "A passing assertion"); plan(1); }; # This will convert all events into instances of # Test2::API::InterceptResult::Event. ...