Test::S...nt::Bail(3)
π Test::S...nt::Bail β the manual page, bestie edition π
okay so this is Test::Stream::Event::Bail(3), from the User Contributed Perl Documentation corner of the world, and it's literally the "we need to STOP" event. let's get into it π«Ά
β¨ NAME β¨
Test::Stream::Event::Bail β Bailout! π
π¨ DEPRECATED π¨
bestie. i need you to hear me on this one. This distribution is deprecated in favor of Test2, Test2::Suite, and Test2::Workflow.
Likeβ¦ it still exists, it still works, but it's giving "we're moving on" energy. π
If you wanna migrate, the conversion guide lives in Test::Stream::Manual::ToTest2. go read it, i promise it's not scary.
πΈ DESCRIPTION πΈ
The bailout event is the one that shows up when everything has gone horribly wrong and you need to halt all testing in the current file. π
it's not a "hmm let me think about it" event. it's the "no. we're done here. pack it up." event. periodt. π
π SYNOPSIS π
use Test::Stream::Context qw/context/;
use Test::Stream::Event::Bail;
my $ctx = context();
my $event = $ctx->bail('Stuff is broken');
look how clean that is. you grab a context, you call bail with a reason, and boom β event created. β¨
π¦ METHODS π¦
Inherits from Test::Stream::Event. Also defines:
$reason = $e->reasonβ the reason for the bailout. like, why did we bail. what happened. spill. π
π₯ SOURCE π₯
The source code repository for Test::Stream can be found at http://github.com/Test-More/Test-Stream/.
go. click. lurk. it's fine, we all do it. π§
π 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, no notes, no crumbs, we ate. π this little writeup was documented for perl v5.42.0 and dated 2025-07-25 β mwah, iconic, take care of yourselves out there, and may your test suites never need to bail. πβ¨π
π¦ 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