Test::S...:Plugin(3)

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

πŸ’– Test::Stream::Plugin β€” bestie edition πŸ’–

okay so you're here for Test::Stream::Plugin(3), the lil' helper that makes writing plugins not a whole ordeal. welcome, sit down, hydrate, let's go ✨

🌸 NAME 🌸

Test::Stream::Plugin β€” the simple helper for writing plugins, fr fr. it's giving "I do one thing and I do it well" πŸ’…


🚨 DEPRECATED 🚨

bestie. I need you to hear me. This distribution is deprecated in favor of Test2, Test2::Suite, and Test2::Workflow. it's not a vibe check failure, it's just... time. 😭

If you're migrating (and you should be, no cap), go read Test::Stream::Manual::ToTest2 β€” it's the conversion guide, it's literally right there, it's got you 🫢


✨ DESCRIPTION ✨

So what does this module even do? It hands you an import method that wraps around a typical Test::Stream::Plugin so you can just... use it directly. That's the whole thing. Iconic behavior honestly πŸ‘‘

Note: this plugin is not necessary if your plugin uses Test::Stream::Exporter and does not have a custom import method. if that's you, you can simply close this tab and live your life 🌈

πŸ¦‹ SYNOPSIS πŸ¦‹

Here's the whole vibe in code, verbatim, don't @ me:

package Test::Stream::Plugin::MyPlugin;
use strict;
use warnings;

# Provides an 'import' method for us that delegates to load_ts_plugin()
use Test::Stream::Plugin qw/import/;

sub load_ts_plugin {
    my $class = shift;
    my ($caller, @args) = @_;
    ...
}

1;

see how the use Test::Stream::Plugin qw/import/; line just drops an import in your lap that delegates to load_ts_plugin()? chef's kiss 🀌 that's the entire point, that's the main character moment.


πŸ“š MANUAL πŸ“š

When you're searching for documentation and you don't know where to start β€” start with Test::Stream::Manual. it's a good place to start. it's the good place to start. go there πŸŽ€


πŸ”₯ SOURCE πŸ”₯

The source code repository for Test::Stream lives at:

http://github.com/Test-More/Test-Stream/

go star it, go read it, go lurk responsibly πŸ’œ


πŸ‘‘ 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/


and that's the whole page, bestie!! πŸŒΈπŸ¦‹πŸŽ€

perl v5.42.0 Β· 2025-07-25 β€” that's the version and date, shoutout to whoever generated this page on that day, you ate πŸ’… mwah, go write a plugin, you got this πŸ’–βœ¨

πŸ“¦ where this page comes from