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