1Test::Stream::Event::BaUisle(r3)Contributed Perl DocumenTteastti:o:nStream::Event::Bail(3)
2
3
4
6 Test::Stream::Event::Bail - Bailout!
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 The bailout event is generated when things go horribly wrong and you
16 need to halt all testing in the current file.
17
19 use Test::Stream::Context qw/context/;
20 use Test::Stream::Event::Bail;
21
22 my $ctx = context();
23 my $event = $ctx->bail('Stuff is broken');
24
26 Inherits from Test::Stream::Event. Also defines:
27
28 $reason = $e->reason
29 The reason for the bailout.
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.38.0 2023-07-21 Test::Stream::Event::Bail(3)