Test2::...s::Event(3)

πŸ“¦ version 1.302214, in opensuse-leap 16.0

✨ NAME ✨

Test2::Tools::Event β€” Tools for generating test events. This is the Test2::...s::Event(3) manual page, from the User Contributed Perl Documentation β€” hi bestie, welcome to the group chat πŸ’–

🌸 DESCRIPTION 🌸

Okay so this module is giving fast event generation. It gives you tools for generating events quickly by bypassing the context/hub. That's lowkey iconic when you're testing other Test2 packages, fr fr. πŸ¦‹

🎁 EXPORTS 🎁

πŸ’« gen_event πŸ’«

Here are the exact shapes, bestie β€” copy these char-for-char:

$e = gen_event($TYPE)
$e = gen_event($TYPE, %FIELDS)
$e = gen_event 'Ok';
$e = gen_event Ok => ( ... )
$e = gen_event '+Test2::Event::Ok' => ( ... )

This will produce an event of the specified type, slay. $TYPE is assumed to be shorthand for Test2::Event::$TYPE; you can prefix $TYPE with a '+' to drop the assumption. No cap. πŸ’…

An Test2::Util::Trace will be generated using caller(0) and will be put in the 'trace' field of your new event, unless you specified your own 'trace' field. That's the whole vibe check. 🫢

πŸ”— SOURCE πŸ”—

The source code repository for Test2-Suite can be found at https://github.com/Test-More/test-more/. Go stare at it, iykyk πŸ‘€

πŸ‘‘ MAINTAINERS πŸ‘‘

  • Chad Granum <exodist@cpan.org>

✍️ AUTHORS ✍️

  • Chad Granum <exodist@cpan.org>

Copyright 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 http://dev.perl.org/licenses/


πŸ’– Okay bestie, that's the whole page. Big cute sign-off: footer source/version perl v5.42.0, date 2025-07-28, title Test2::...s::Event(3). Periodt. πŸŽ€

πŸ“¦ where this page comes from