Test::S...:Context(3)
β¨ NAME β¨
Test::S...:Context β it's a plugin and its whole job is exposing the context function π (also filed under Test::Stream::Plugin::Context, if you're looking it up in the User Contributed Perl Documentation, bestie π«Ά)
π DEPRECATED π
Okay so not to be dramatic but this whole distribution is deprecated π it has been superseded by Test2, Test2::Suite, and Test2::Workflow. Like, it still works, but it's giving legacy.
If you're trying to migrate, there's a whole conversion guide waiting for you in Test::Stream::Manual::ToTest2 β¨
πΈ DESCRIPTION πΈ
So this plugin does one (1) thing and it does it iconically: it exposes the context() function π
That function is what tools use to mark and find the context of a test. It's also the primary interface for generating test events, which is a lot of main character energy for one little function, but here we are π
π¦ SYNOPSIS π¦
use Test::Stream qw/... Context/;
sub my_tool {
my $ctx = context();
...
$ctx->release;
}
See how we grab the $ctx and then release it when we're done? That's the whole vibe. Grab it, use it, release it. No cap π§
π₯ SOURCE π₯
The source code repo for Test::Stream lives at:
http://github.com/Test-More/Test-Stream/
Go lurk, it's fine, we all do it π
π 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 bestie, you ate that πβ¨
This was brought to you by perl v5.42.0, dated 2025-07-25, and it's the Test::S...:Context(3) page β go forth and release your contexts, 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