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_stringraw
πΈ 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
- alpine 3.24: perl-doc 5.42.3-r0 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms