TEST2::EVENTFACET::RENDER(3pm)
π NAME π
okay so bestie, this is Test2::EventFacet::Render β Facet that dictates how to render an event. Itβs a 3pm page from the Perl Programmers Reference Guide, and itβs literally the glow-up guide for making test events show up cute and correct. π«Ά
β¨ DESCRIPTION β¨
This facet is used to dictate how the event should be rendered by the standard test2 rendering tools. If this facet is present, then ONLY what is specified by it will be rendered. No cap.
It is assumed that anything important or note-worthy will be present here β no other facets will be considered for rendering/display. So if you leave the important stuff out, itβs giving invisible, bestie. π
This facet is a list type, you can add as many items as needed. Stack βem like cute stickers on a laptop. π
πΈ FIELDS πΈ
π
details
$string = $render->[#]->{details}
$string = $render->[#]->details()
Human readable text for display. The literal words your event shows off. β¨
π·οΈ tag
$string = $render->[#]->{tag}
$string = $render->[#]->tag()
Tag that should prefix/identify the main text. Itβs the little label vibe in front of the main character text. π
π§ facet
$string = $render->[#]->{facet}
$string = $render->[#]->facet()
Optional. If the display text was generated from another facet, this should state what facet it was. Lowkey a receipts field. π§Ύ
π₯ mode
$mode = $render->[#]->{mode}
$mode = $render->[#]->mode()
The mode is a whole vibe, and there are two:
calculatedβ Calculated means the facet was generated from another facet. Calculated facets may be cleared and regenerated whenever the event state changes. So yeah, it can ghost and come back when things shift. π¦replaceβ Replace means the facet is intended to replace the normal rendering of the event. Itβs not adding a little garnish; itβs taking over the plate. π
π SOURCE π
The source code repository for Test2 can be found at <https://github.com/Test-More/test-more/>. Go snoop, bestie. π
π MAINTAINERS π
Chad Granum <exodist@cpan.org> β keeping the vibes maintained. π«Ά
β AUTHORS β
Chad Granum <exodist@cpan.org> β author icon. π
π 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 thatβs the whole page, bestie! π This gem is from perl v5.42.3, dated 2026-11-03 β mwah, go slay your rendering. β¨π
π¦ where this page comes from
- alpine 3.24: perl-doc 5.42.3-r0 Β· Artistic-1.0-Perl 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