TEST2::EVENTFACET::PLAN(3pm)

πŸŽ€ NAME πŸŽ€

Test2::EventFacet::Plan β€” the facet for setting the plan, bestie πŸ’…

This page lives in the Perl Programmers Reference Guide, and it’s the Test2::EventFacet::Plan(3pm) manual page. Obsessed with a plan facet that knows its purpose? Same.


πŸ’… DESCRIPTION πŸ’…

When events need to set the plan, they use this facet. That’s the whole vibe check: it’s the plan-setting facet, periodt ✨


πŸ”₯ FIELDS πŸ”₯

  • $string = $plan->{details} / $string = $plan->details() β€” a human-readable explanation for why this plan is being set. Most formatters normally don’t render this, except when the skip field is also set. So it’s lowkey a special-occasion field πŸ’–
  • $positive_int = $plan->{count} / $positive_int = $plan->count() β€” sets the number of expected assertions. Usually this should be set to 0 when skip or none is also set. Numbers, but make it make sense πŸŽ€
  • $bool = $plan->{skip} / $bool = $plan->skip() β€” when true, the entire test should be skipped. This is usually paired with an explanation in the details field, plus a control facet that has terminate set to 0. Skip responsibly, bestie πŸ¦‹
  • $bool = $plan->{none} / $bool = $plan->none() β€” mainly used by legacy Test::Builder tests that set the plan to β€œno plan”, a construct that predates the much better done_testing(). If you’re using this in non-legacy code, you may need to reconsider the course of your life β€” maybe a hermitage would suite you? 😭 (their words, not mine)

🌈 SOURCE 🌈

The source code repository for Test2 can be found at https://github.com/Test-More/test-more/ β€” go peek, it’s giving main character energy πŸ‘‘


πŸ‘‘ 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 page, bestie β€” source/version perl v5.42.3, dated 2026-11-03. Mwah, bye πŸ’‹βœ¨

πŸ“¦ where this page comes from