TEST2::EVENTFACET(3perl)
π NAME π
Test2::EventFacet β the base class for all the event facets, bestie. Every single one of them. It's giving founding mother energy π
β¨ DESCRIPTION β¨
Okay so real talk: Test2::EventFacet is the base class for all event facets. That's the whole vibe. It's the blueprint every facet class inherits from, the mom of the whole facet family tree πΈ
If you're building a facet, you're gonna want to know what this class hands down to you. Keep reading, iykyk π
π METHODS π
$key = $facet_class->facet_key()β returns the key that this facet shows up under in the facet data hash. That's it, that's the whole function. The way it just gives you the key π$bool = $facet_class->is_list()β returns true if this facet should live inside a list instead of being a single lone item. So like, plural vibes vs. singular vibes. Respect the difference fr fr β¨$clone = $facet->clone()$clone = $facet->clone(%replace)β makes a shallow clone of the facet, no cap. And because that's just not enough for you (iconic), you can also pass fields in as arguments and they'll get overridden on the clone. Customize your copy, main character behavior only π π¦
Heads up bestie: it's a shallow clone. Not a deep one. Don't be out here thinking you got a whole fresh copy of every nested thing, because you did not π
π₯ SOURCE π₯
The source code repository for Test2 lives right here, come thru:
https://github.com/Test-More/test-more/
π 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. Slay, that's the license behavior we love to see π«Ά
See https://dev.perl.org/licenses/ for the deets.
Okay so that's the whole page, and you ate it up π This was perl v5.44.0, dated 2026-10-17, straight out of the Perl Programmers Reference Guide β Test2::...ntFacet(3perl), no cap. Byeeee, go write a facet! πβ¨π§
π¦ where this page comes from
- arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms