Test::S...:Context(3)

πŸ“¦
version 1.302027 Β· 2 versions
, in fedora 43

✨ 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 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