Test::S...nt::Plan(3)
π NAME π
Test::Stream::Event::Plan β bestie, this is the event of a plan β¨ it's the whole vibe of "okay we're doing a plan now" in Test::Stream, and it lives in the Test::S...nt::Plan(3) manpage π
π¨ DEPRECATED π¨
girl stop. This distribution is deprecated in favor of Test2, Test2::Suite, and Test2::Workflow. it's giving "we've moved on" π
See Test::Stream::Manual::ToTest2 for a conversion guide. like, the glow-up guide is right there, use it π«Ά
πΈ DESCRIPTION πΈ
So Plan events get fired off whenever a plan is declared, whenever done testing is called, or whenever a subtext completes. That's it, that's the whole job. three little triggers, one iconic event β¨
π SYNOPSIS π
use Test::Stream::Context qw/context/;
use Test::Stream::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");
like, look at her go π planning 10 tests, or just skipping the whole thing with skip_all and exiting 0. no cap, the exit 0 is right there in the comment, that's canon. π
π ACCESSORS π
$num = $plan->maxβ get the number of expected tests π’ like how many tests we're committing to, bestie$dir = $plan->directiveβ get the directive, such asTODO,skip_all, orno_planπ―$reason = $plan->reasonβ get the reason for the directive π¬ the "why" behind the directive, the lore
π¦ SOURCE π¦
The source code repository for Test::Stream can be found at http://github.com/Test-More/Test-Stream/. go be nosy, it's fine π
π§ MAINTAINERS π§
- Chad Granum <exodist@cpan.org>
β AUTHORS β
- Chad Granum <exodist@cpan.org>
π COPYRIGHT π
Copyright 2015 Chad Granum <exodist7@gmail.com>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://dev.perl.org/licenses/
okay that's the whole page, ily, go write some plans π
β¨ this was perl v5.42.0, dated 2025-07-25, straight out of the Test::S...nt::Plan(3) manpage β periodt ππ¦
π¦ where this page comes from
- fedora 43: perl-Test-Stream 1.302027-35.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms