TEST2::EVENTFACET::RENDER(3perl)
π NAME π
Test2::EventFacet::Render β it's the facet that decides how an event gets rendered, bestie. Literally the glow-up filter for your test output. β¨
π DESCRIPTION π
Okay so listen. This facet is what tells the standard test2 rendering tools how an event should be shown off. And here's the tea: if this facet is present, then ONLY what it specifies gets rendered. That's it. Nothing else. Periodt. π
So the vibe is β anything important or note-worthy better be in here, because no other facets will even be considered for rendering or display. They're giving background dancer energy. Nobody's looking at them. π
Also it's a list type facet, which means you can stack as many items in there as you need. Add one, add twelve, whatever, she's flexible. π¦
πΈ FIELDS πΈ
$string = $render->[#]->{details}$string = $render->[#]->details()
The human readable text you actually want on screen. This is the main character of the whole facet, ngl. π
$string = $render->[#]->{tag}$string = $render->[#]->tag()
A tag that prefixes / identifies the main text. Like a little name badge so you know who's talking. π
$string = $render->[#]->{facet}$string = $render->[#]->facet()
Optional! If the display text was generated from another facet, put that facet's name here so everybody knows where it came from. Credit where credit's due. π«Ά
$mode = $render->[#]->{mode}$mode = $render->[#]->mode()
Two possible moods, and yes she contains multitudes:
calculatedβ means the facet was generated from another facet. Calculated facets may be cleared and regenerated whenever the event state changes. She's a shapeshifter, lowkey. πreplaceβ means the facet is intended to replace the normal rendering of the event. Not a supporting role. She is the show. π¬
π SOURCE π
The source code repository for Test2 can be found at <https://github.com/Test-More/test-more/>. Go be nosy, it's fine. π
π§ 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 <https://dev.perl.org/licenses/>
okay bestie that's the whole page, no notes π
β this was perl v5.44.0, dated 2026-10-17, from Test2:...:Render(3perl), and I'm obsessed with her fr fr πΈβ¨
π¦ 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