Test2::Event::Bail(3)

πŸ“¦ version 1.302214, in opensuse-leap 16.0

πŸ’… Test2::Event::Bail πŸ’…

okay so bestie, you've landed on the User Contributed Perl Documentation page for Test2::Event::Bail(3) β€” manual name folded in right at the top, cute and accounted for. 🫢 this page is all about the bailout event, and it's lowkey giving emergency-stop energy for your test file. 😭

🌸 NAME 🌸

Test2::Event::Bail - Bailout!

πŸ¦‹ DESCRIPTION πŸ¦‹

the bailout event gets generated when things go horribly wrong and you need to halt all testing in the current file. no cap, it's the dramatic exit for the current file. πŸ’…

✨ SYNOPSIS ✨

use Test2::API qw/context/;
use Test2::Event::Bail;

my $ctx = context();
my $event = $ctx->bail('Stuff is broken');

πŸŽ€ METHODS πŸŽ€

inherits from Test2::Event. also defines:

  • $reason = $e->reason β€” the reason for the bailout. literally the receipts for why we had to bail. πŸ’…

πŸ”— SOURCE πŸ”—

the source code repository for Test2 can be found at <https://github.com/Test-More/test-more/>.

πŸ‘‘ MAINTAINERS πŸ‘‘

Chad Granum <exodist@cpan.org>

πŸ’– AUTHORS πŸ’–

Chad Granum <exodist@cpan.org>

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/>.


mwah πŸ’‹ that's the whole page. source/version check: perl v5.42.0, date 2025-07-28, manual Test2::Event::Bail(3) β€” slay, you're all caught up. 🫢

πŸ“¦ where this page comes from