Test2:...::Bail(3perl)
π Test2::Event::Bail β bestie, we're bailing π
okay so real talk, this is the page for Test2::Event::Bail from the Perl Programmers Reference Guide (it's a 3perl manpage, iykyk). It's short, it's dramatic, it's giving emergency exit energy. Let's get into it β¨
β¨ NAME β¨
Test2::Event::Bail β Bailout! π¨
π¦ DESCRIPTION π¦
So the bailout event is what pops off when things go horribly wrong and you literally need to halt all testing in the current file. No cap. Everything stops. The vibe check failed. π
π SYNOPSIS π
use Test2::API qw/context/;
use Test2::Event::Bail;
my $ctx = context();
my $event = $ctx->bail('Stuff is broken');
Look at her go π
grab a context, call bail on it, and boom β the whole test file is done-zo.
π METHODS π
She inherits from Test2::Event, and on top of all that she also defines:
$reason = $e->reasonβ this is the reason for the bailout. Like, the receipts. The why. Why are we bailing, bestie? π«Ά
π SOURCE π
The source code repository for Test2 can be found at:
<https://github.com/Test-More/test-more/>
go peek, it's iconic π
πΈ MAINTAINERS πΈ
Chad Granum <exodist@cpan.org>
β AUTHORS β
Chad Granum <exodist@cpan.org>
π COPYRIGHT π
Copyright Chad Granum <exodist@cpan.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See <https://dev.perl.org/licenses/>
fr fr that's the whole page. no hidden options, no secret flags, just a bailout event doing her thing π
and that's a wrap on the Test2:...::Bail(3perl) page, brought to you by perl v5.44.0, dated 2026-10-17, part of the Perl Programmers Reference Guide πβ¨ bye bestie, go write some tests π
π¦ where this page comes from
- arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms