Test2::Harness::Event(3pm) | User Contributed Perl Documentation | Test2::Harness::Event(3pm) |
Test2::Harness::Event - Subclass of Test2::Event used by Test2::Harness under the hood.
Test2 tests produce a sequence of events objects Test2::Event. This is a subclass of those events for use in Test2::Harness. Event non-test tests which produce TAP output will have the output parsed into these types of events.
In normal usage ou will never need to create one fo these events yourself. This documentation assumes you are operating on an existing event $event that the harness exposed to you via a plugin or similar.
my $facet_data = $event->facet_data; my $run_id = $event->run_id; my $job_id = $event->job_id; my $job_try = $event->job_try; my $event_id = $event->event_id;
See Test2::Event for methods provided by the base class.
The lossy/cached conversion is intended so that events get passed through the harness pipeline without modifications from one step translating to another. If you need something extra to go through you need to either replace the event or create an additional one.
The source code repository for Test2-Harness can be found at http://github.com/Test-More/Test2-Harness/.
Copyright 2020 Chad Granum <exodist7@gmail.com>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://dev.perl.org/licenses/
2023-03-12 | perl v5.36.0 |