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 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