Michael G Schwern > Test-Simple-1.005000_002 > TB2::SubtestEnd

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

Annotate this POD

Website

View/Report Bugs
Source   Latest Release: Test-Simple-1.005000_006

NAME ^

TB2::SubtestEnd - End of a subtest event

DESCRIPTION ^

This is a TB2::Event representing the end of a subtest.

Receiving this event indicates to the parent that the subtest has ended. All events from here out belong to the current test level. Most event handlers will not have to be concerned about this.

Information about the subtest will be communicated back to the parent handler via <$subtest_end-history>>

METHODS ^

It has all the methods and attributes of TB2::Event with the following differences and additions.

Attributes

history

The TB2::History object from the subtest.

This can be used by event handlers to get information from the subtest.

Normally this will be filled in by TB2::TestState during posting. A builder may put in an alternative history object.

build_event_type

The event type is subtest_end.

SEE ALSO ^

TB2::Event This does the Event role.

TB2::SubtestStart The cooresponding event which starts the subtest.

syntax highlighting: