Test::S...:Tester(3)
π Test::Stream::Bundle::Tester π
okay bestie, welcome to the Test::Stream::Bundle::Tester page β it's the bundle you reach for when you're testing your test tools (yes, tools for tools, we're going full inception here π). Perl doc, user contributed, and honestly? iconic.
π DEPRECATED π
ngl this one comes with a big sad disclaimer: this whole distribution is deprecated in favor of Test2, Test2::Suite, and Test2::Workflow.
π fr fr, it's on the way out. if you need to migrate, go read Test::Stream::Manual::ToTest2 β that's the conversion guide, it's got you.
β¨ DESCRIPTION β¨
These are the plugins that come in clutch when you're testing test tools and plugins. It's giving interception and validation β like, tools for catching events and checking they're valid β plus every single export the Compare plugin gives you. all of them. no crumbs left. π
πΈ SYNOPSIS πΈ
use Test::Stream Core, -Tester;
is(
intercept { ok(1, "pass") },
array {
event Ok => sub {
call pass => T();
call name => 'pass';
};
end;
},
"Intercepted an event"
);
done_testing;
look at that. intercept catches the event, array checks the shape of it, done_testing wraps us up. chef's kiss π
π INCLUDED PLUGINS AND BUNDLES π
π Test::Stream::Plugin::Compare
Unlike the default bundle, every tool exported by the Compare plugin gets imported. the default bundle is stingy about it; this one is not. we're generous here. π«Ά
π¦ Test::Stream::Plugin::Intercept
Provides the intercept { ... } function β this is the one you use to intercept events. main character of the whole bundle, honestly.
π Test::Stream::Plugin::Grab
An alternative way to intercept events β and here's the cute part: this one does not add stack frames. so if your stack trace was looking a lil messy, this is the move. β¨
β Test::Stream::Plugin::LoadPlugin
Lets you dynamically load plugins whenever you need them. on demand, like a lil plugin vending machine. π§
π Test::Stream::Plugin::Context
Provides the context() function. short, sweet, does the thing.
π₯ SOURCE π₯
The source code repository for Test::Stream lives at http://github.com/Test-More/Test-Stream/ β go peek, go lurk, it's public. π
π 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 it π this was written against perl v5.42.0 and dated 2025-07-25 β so like, remember the era you're reading this in. mwah. π
β¨
π¦ 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