TAP::PARSER::RESULT::YAML(3pm)

πŸ’– TAP::Parser::Result::YAML(3pm) πŸ’–

okay bestie, this is from the Perl Programmers Reference Guide and we are about to make YAML result tokens make sense. lowkey iconic of you to be here. πŸ’…

πŸ’– NAME πŸ’–

TAP::Parser::Result::YAML β€” YAML result token.

✨ VERSION ✨

Version 3.50 β€” noted, slayed, periodt.

πŸ¦‹ DESCRIPTION πŸ¦‹

So TAP::Parser::Result::YAML is a subclass of TAP::Parser::Result. If the parser encounters a YAML block, it returns a token of this class. That's the whole vibe check. 🫢

Example, because examples eat every time:

1..1
ok 1 - woo hooo!

1..1 is the plan.  Gotta have a plan.

1..1 is the plan. Gotta have a plan. no cap. 🌸

πŸŽ€ OVERRIDDEN METHODS πŸŽ€

These are mainly listed here to shut up the pitiful screams of the pod coverage tests β€” they keep me awake at night, fr fr. 😭

  • as_string
  • raw

🌸 Instance Methods 🌸

data

if ( $result->is_yaml ) {
   print $result->data;
}

Return the parsed YAML data for this result. πŸ“


mwah πŸ’‹ signing off from the source/version perl v5.42.3 and the date 2026-11-03 β€” bye bestie! 🫢

πŸ“¦ where this page comes from