Test2::Event::Generic(3p) Perl Programmers Reference Guide
Test2::Event::Generic(3p) Perl Programmers Reference Guide # Test2::Event::Generic(3p) Perl Programmers Reference Guide NNAAMMEE # Test2::Event::Generic - Generic event type. DDEESSCCRRIIPPTTIIOONN # This is a generic event that lets you customize all fields in the event API. This is useful if you have need for a custom event that does not make sense as a published reusable event subclass. SSYYNNOOPPSSIISS # use Test2::API qw/context/; sub send_custom_fail { my $ctx = shift; $ctx->send_event('Generic', causes_fail => 1, summary => 'The sky is falling'); $ctx->release; } send_custom_fail(); MMEETTHHOODDSS # $e->facet_data($data) $data = $e->facet_data Get or set the facet data (see Test2::Event). ...