Shlomi Fish

NAME

Test::Run::Straps::EventWrapper - a wrapper for a TAP::Parser::Result subclass which delegates to its methods and has its own methods.

DESCRIPTION

TAP::Parser's next() method returns a sub-class of TAP::Parser::Result. However, we need to define our own methods on such objects. Since we cannot inherit from all the sub-classes, we have created this class which holds an instance of the actual events, delegates some methods to it, and defines some of its own methods.

$event->is_pass()

Returns whether the event can be considered a passed event. Always returns a scalar boolean.

$self->get_next_test_number()

If this event is a test, then return the next expected test number. Else return undef.

SEE ALSO

Test::Run::Straps, Test::Run::Obj, Test::Run::Core

LICENSE

This file is licensed under the MIT X11 License:

http://www.opensource.org/licenses/mit-license.php

AUTHOR

Shlomi Fish, http://www.shlomifish.org/.