Test::S...dPlugin(3)
π Test::Stream::Plugin::LoadPlugin β the manual, but make it make sense π
okay bestie, so this page lives in the Test::Stream::Plugin::LoadPlugin(3) corner of the perl manual, and it's literally just one little function that goes hard. it's giving "load a plugin with full Test::Stream semantics, but at runtime." π¦
π₯ DEPRECATED π₯
not to be dramatic but this whole distribution is deprecated, fr fr. it's been retired in favor ofTest2,Test2::Suite, andTest2::Workflow. π
if you need to migrate your whole situation over, there's a conversion guide waiting for you in Test::Stream::Manual::ToTest2. go look at it, i'm begging. π
β¨ DESCRIPTION β¨
so here's the tea: when you're testing plugins, it is so useful to be able to load them a bunch of times with different arguments. like, multiple times. different args. iconic behavior. π
but doing that with use Test::Stream ...? not helpful. because use does its whole thing at BEGIN time, and by then it's already over and done with. it's not flexible, it's not gonna loop for you, it's just gonna happen once and clock out. π
so this module hands you a run-time function you can call to load a plugin whenever you want. and the syntax? identical to the use statements. why? because under the hood it's literally using the same mechanism. same guts, different timing. periodt. π
π SYNOPSIS π
use Test::Stream 'LoadPlugin';
# The following 2 are identical, except that the use statement happens at
# begin time, the load_plugin statement happens at run-time.
load_plugin Plugin => [qw/foo bar/];
use Test::Stream Plugin => [qw/foo bar/];
see? twins. π― same energy, same args, only difference is when they happen. one at begin time, one at run-time. no cap. β¨
πΈ SOURCE πΈ
the source code repository for Test::Stream is hanging out at:
http://github.com/Test-More/Test-Stream/
go star it, go read it, go be nosy. π«Ά
π 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/
and that's the whole page, bestie!! this beauty shipped with perl v5.42.0 and got dated 2025-07-25 β so if you're reading it, mwah, you're holding a lil slice of perl history. ππ now go call load_plugin at runtime like the main character you are. π
β¨
π¦ 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