Test2::...s::Event(3)
β¨ 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 Β©οΈ
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
- opensuse-leap 16.0: perl-Test-Simple 1.302214-bp160.1.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms