TEST2::EVENTFACET::PLAN(3perl)
π Test2::EventFacet::Plan β the plan facet, bestie π
okay so this is the manual page for Test2::EventFacet::Plan, from the 3perl section, and it's genuinely one of the shorter ones so we can vibe through it together no problem π«Ά
β¨ NAME β¨
Test2::EventFacet::Plan β it's the facet for setting the plan. that's it. that's the whole name. iconic of it honestly π
πΈ DESCRIPTION πΈ
so likeβ¦ events use this facet when they need to set the plan. that's the tea. when something's gotta declare the plan, this is the lil facet that carries it π
π FIELDS π
here's where it gets juicy. four fields. let's go bestie:
$string = $plan->{details}$string = $plan->details()β this is the human readable explanation for why the plan is being set. key word: human readable. and ngl, most formatters just straight up do NOT render this one β the only time it shows up is when theskipfield is also set. so like, it's shy, it only comes out for the skip moment π$positive_int = $plan->{count}$positive_int = $plan->count()β this sets the number of expected assertions. note that it's a positive int. and whenskipornoneare also set, this should usually be set to0. like, zero. nada. periodt β¨$bool = $plan->{skip}$bool = $plan->skip()β when this is true, the ENTIRE test should be skipped. the whole thing. all of it π and it's usually paired up with an explanation living in thedetailsfield, plus acontrolfacet that hasterminateset to0. they're a little trio, they roll together π¦$bool = $plan->{none}$bool = $plan->none()β okay so this one is mainly used by legacyTest::Buildertests, the ones that set the plan to "no plan" β a whole construct that predates the much betterdone_testing(). so like, it's giving vintage, but not in a cute way π
and listen, the manpage has a very strong opinion here: if you are using this in non-legacy code, you may need to reconsider the course of your life, and maybe a hermitage would suite you? π not me being read to filth by a Perl manpage. anyway, that's a direct quote of the energy, bestie, take it up with the docs π§
π SOURCE π
the source code repository for Test2 can be found at:
<https://github.com/Test-More/test-more/>
go look, it's right there, no cap π
π MAINTAINERS π
- Chad Granum
<exodist@cpan.org>
β AUTHORS β
- Chad Granum
<exodist@cpan.org>
(yes bestie, same person, they're carrying this whole thing, we love a main character π«Ά)
π 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!! and for the cute sign-off: this was perl v5.44.0, dated 2026-10-17, and we were reading Test2::...t::Plan(3perl) the whole time πΈπ slay, go set your plans correctly, ily β¨
π¦ 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