Test2::...::Render(3)

πŸ“¦ version 1.302214, in opensuse-leap 16.0

🌸 NAME 🌸

User Contributed Perl Documentation for Test2::...::Render(3) β€” and the actual star is Test2::EventFacet::Render: the facet that dictates how to render an event. πŸ’…βœ¨

πŸ’– DESCRIPTION πŸ’–

Okay so this facet is the one that tells the standard test2 rendering tools how an event should be rendered. If this facet is present, then ONLY what is specified by it will be rendered. The vibe is: it’s assumed that anything important or note-worthy will be present here, and no other facets will be considered for rendering/display. πŸ™ˆ

It’s a list type, bestie β€” you can add as many items as needed. 🫢

Heads-up for the group chat: this is the β€œmain character” facet for rendering. When it shows up, the other facets don’t get a turn for rendering/display. πŸ‘‘

πŸ¦‹ FIELDS πŸ¦‹

  • details β€” the human-readable text for display:
$string = $render->[#]->{details}
$string = $render->[#]->details()

This is the human readable text for display. πŸ’–

  • tag β€” the tag that should prefix/identify the main text:
$string = $render->[#]->{tag}
$string = $render->[#]->tag()

Tag that should prefix/identify the main text. ✨

  • facet β€” optional, bestie:
$string = $render->[#]->{facet}
$string = $render->[#]->facet()

If the display text was generated from another facet, this should state what facet it was. πŸ¦‹

  • mode β€” the mode, obviously:
$mode = $render->[#]->{mode}
$mode = $render->[#]->mode()
  • calculated β€” Calculated means the facet was generated from another facet. Calculated facets may be cleared and regenerated whenever the event state changes. πŸ”
  • replace β€” Replace means the facet is intended to replace the normal rendering of the event. πŸ’₯

πŸ”₯ SOURCE πŸ”₯

The source code repository for Test2 can be found at <https://github.com/Test-More/test-more/>. 🌈

πŸ‘‘ MAINTAINERS πŸ‘‘

  • Chad Granum <exodist@cpan.org> πŸ‘‘

⭐ AUTHORS ⭐

  • Chad Granum <exodist@cpan.org> ⭐

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/>. πŸ“


That’s the whole page, bestie πŸ’– β€” perl v5.42.0, dated 2025-07-28, and titled Test2::...::Render(3). Now go render something iconic. πŸ’…βœ¨

πŸ“¦ where this page comes from