1Test::Stream::Plugin::CUosnetrexCto(n3t)ributed Perl DocTuemsetn:t:aSttiroenam::Plugin::Context(3)
2
3
4
6 Test::Stream::Plugin::Context - Plugin to expose the context function.
7
9 This distribution is deprecated in favor of Test2, Test2::Suite, and
10 Test2::Workflow.
11
12 See Test::Stream::Manual::ToTest2 for a conversion guide.
13
15 This plugin exposes the "context()" function. This function is used by
16 tools to mark/find the context of a test. It is also the primary
17 interface for generating test events.
18
20 use Test::Stream qw/... Context/;
21
22 sub my_tool {
23 my $ctx = context();
24 ...
25 $ctx->release;
26 }
27
29 The source code repository for Test::Stream can be found at
30 http://github.com/Test-More/Test-Stream/.
31
33 Chad Granum <exodist@cpan.org>
34
36 Chad Granum <exodist@cpan.org>
37
39 Copyright 2015 Chad Granum <exodist7@gmail.com>.
40
41 This program is free software; you can redistribute it and/or modify it
42 under the same terms as Perl itself.
43
44 See http://dev.perl.org/licenses/
45
46
47
48perl v5.32.0 2020-07-28 Test::Stream::Plugin::Context(3)