TAP::P...ailout(3perl)
π NAME π
TAP::Parser::Result::Bailout β the Bailout result token, bestie. It's the token that shows up when everything goes absolutely sideways and the test suite just... gives up. π«
β¨ VERSION β¨
Version 3.52
πΈ DESCRIPTION πΈ
Okay so, this is a subclass of TAP::Parser::Result. A token of this class gets returned if a bail out line is encountered. That's it, that's the whole vibe.
Like, watch this iconic little tragedy unfold:
1..5
ok 1 - woo hooo!
Bail out! Well, so much for "woo hooo!"
One test passed, everybody was celebrating, and then boom β bail out. Not me getting emotionally attached to a test suite π
π OVERRIDDEN METHODS π
Mainly listed here to shut up the pitiful screams of the pod coverage tests. They keep me awake at night. (Their words. Not mine. Well. Kind of mine now.)
as_stringβ yes bestie, it's overridden, it's here, it's in the list, we move.
π Instance Methods π
explanation
if ( $result->is_bailout ) {
my $explanation = $result->explanation;
print "We bailed out because ($explanation)";
}
If, and only if, a token is a bailout token, you can get an explanation via this method. The explanation is the text after the mystical Bail out! words which appear in the tap output. β¨
So fr fr: check is_bailout first, or don't come crying to me when it doesn't do the thing. π
And that's the whole page, angel! π
This was TAP::P...ailout(3perl) from perl v5.44.0, dated 2026-10-17 β slayed, ate, left no crumbs. Go forth and parse your tokens, you absolute main character. π¦π
π¦ 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