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 theskipfield 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 to0whenskipornoneis 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 thedetailsfield, plus acontrolfacet that hasterminateset to0. Skip responsibly, bestie π¦$bool = $plan->{none}/$bool = $plan->none()β mainly used by legacyTest::Buildertests that set the plan to βno planβ, a construct that predates the much betterdone_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 π
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
- 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