1Test::Stream::Plugin::LUosaedrPlCuognitnr(i3b)uted PerlTDeosctu:m:eSnttraetaimo:n:Plugin::LoadPlugin(3)
2
3
4
6 Test::Stream::Plugin::LoadPlugin - Load a plugin with full Test::Stream
7 semantics, but at runtime.
8
10 This distribution is deprecated in favor of Test2, Test2::Suite, and
11 Test2::Workflow.
12
13 See Test::Stream::Manual::ToTest2 for a conversion guide.
14
16 When testing plugins it can be useful to load them multiple times with
17 different arguments. Doing this with "use Test::Stream ..." isn't
18 helpful as the "use" statement makes it happen at BEGIN time. This
19 module provides a run-time function you can use to load a plugin. The
20 syntax is identical to the use statements, this is because it uses the
21 same mechanism under the hood.
22
24 use Test::Stream 'LoadPlugin';
25
26 # The following 2 are identical, except that the use statement happens at
27 # begin time, the load_plugin statement happens at run-time.
28 load_plugin Plugin => [qw/foo bar/];
29 use Test::Stream Plugin => [qw/foo bar/];
30
32 The source code repository for Test::Stream can be found at
33 http://github.com/Test-More/Test-Stream/.
34
36 Chad Granum <exodist@cpan.org>
37
39 Chad Granum <exodist@cpan.org>
40
42 Copyright 2015 Chad Granum <exodist7@gmail.com>.
43
44 This program is free software; you can redistribute it and/or modify it
45 under the same terms as Perl itself.
46
47 See http://dev.perl.org/licenses/
48
49
50
51perl v5.30.1 2020-01-30Test::Stream::Plugin::LoadPlugin(3)