![]() |
![]()
| ![]() |
![]()
NAMETest2::Event::V2 - Second generation event. DESCRIPTIONThis is the event type that should be used instead of Test2::Event or its legacy subclasses. SYNOPSISUSING A CONTEXTuse Test2::API qw/context/; sub my_tool { my $ctx = context(); my $event = $ctx->send_ev2(info => [{tag => 'NOTE', details => "This is a note"}]); $ctx->release; return $event; } USING THE CONSTRUCTORuse Test2::Event::V2; my $e = Test2::Event::V2->new( trace => {frame => [$PKG, $FILE, $LINE, $SUBNAME]}, info => [{tag => 'NOTE', details => "This is a note"}], ); METHODSThis class inherits from Test2::Event.
MUTATION
LEGACY SUPPORT METHODSThese are all imported from Test2::Util::Facets2Legacy, see that module or Test2::Event for documentation on what they do. THIRD PARTY META-DATAThis object consumes Test2::Util::ExternalMeta which provides a consistent way for you to attach meta-data to instances of this class. This is useful for tools, plugins, and other extensions. SOURCEThe source code repository for Test2 can be found at <https://github.com/Test-More/test-more/>. MAINTAINERSAUTHORSCOPYRIGHTCopyright Chad Granum <exodist@cpan.org>. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See <https://dev.perl.org/licenses/>
|