TEST2::EVENT::PLAN(3pm)
π NAME π
Test2::Event::Plan β it's literally the event of a plan, bestie β¨
(also hi, welcome to the Test2::Event::Plan(3pm) page from the Perl Programmers Reference Guide, you're gonna slay this)
πΈ DESCRIPTION πΈ
okay so picture this: a plan event gets fired off every single time a plan is declared, whenever done testing is called, or when a subtext completes. that's it, that's the whole vibe π
like, it's giving "the receipts of test planning" ngl π
π¦ 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 her go π ten whole tests, planned, iconic. and that skip_all one will exit 0 β noted, bestie, that's important π«Ά
β¨ ACCESSORS β¨
$num = $plan->maxβ get the number of expected tests π’ like, how many tests are we even doing here$dir = $plan->directiveβ get the directive, such asTODO,skip_all, orno_planπ the whole mood of the plan, basically$reason = $plan->reasonβ get the reason for the directive π¬ the why, the lore, the backstory
π§ SOURCE π§
the source code repository for Test2 lives right here, no cap:
<https://github.com/Test-More/test-more/>
go look, it's lowkey fascinating π
π 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/>
fr fr read the license before you go redistributing, okay? it's the polite thing to do π
and that's the whole page, bestie π you ate. this was perl v5.42.3, dated 2026-11-03, signing off from Test2::Event::Plan(3pm) β mwah πβ¨
π¦ 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