Test2:...::Plan(3perl)
π Test2::Event::Plan β the event of a plan π
okay so bestie, welcome to Test2::Event::Plan, straight out of the Perl Programmers Reference Guide! this is the page for the event that fires when a plan gets declared. it's giving "we're doing this many tests, no takebacks" energy β¨
πΈ DESCRIPTION πΈ
Plan events are fired off whenever a plan is declared, when done testing is called, or when a subtext completes. that's it, that's the vibe π
β¨ SYNOPSIS β¨
use Test2::API qw/context/;
use Test2::Event::Plan;
my $ctx = context();
# Plan for 10 tests to run
my $event = $ctx->plan(10);
# Plan to skip all tests (will exit 0)
$ctx->plan(0, skip_all => "These tests need to be skipped");
look at that. a whole manifesting ritual for your test suite π
π«Ά ACCESSORS π«Ά
okay so these are the little getters you can hit up on your plan event π
$num = $plan->maxβ get the number of expected tests. how many baddies we bringing to the party π$dir = $plan->directiveβ get the directive (such asTODO,skip_all, orno_plan). the mood, the energy, the instruction π$reason = $plan->reasonβ get the reason for the directive. the "why" behind the whole thing π§
π₯ SOURCE π₯
the source code repository for Test2 can be found at https://github.com/Test-More/test-more/. go be nosy, it's encouraged π
π 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/
okay periodt, that's the whole page π this was perl v5.44.0, dated 2026-10-17, and you just got the full Test2:...::Plan(3perl) rundown. slay, go write some plans π¦β
π¦ 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