TAP::Fo...::Error(3)

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

okay so bestie, welcome to the TAP::Fo...::Error(3) page from the User Contributed Perl Documentation πŸ’– this one is short and sweet and lowkey just an error wrapper, but we’re gonna give it main character energy anyway ✨

🌸 NAME 🌸

TAP::Formatter::GitHubActions::Error β€” Error wrapper 🫢


πŸ› οΈ CONSTRUCTORS πŸ› οΈ

πŸ“¦ from_output($output)

Builds a new TAP::Formatter::GitHubActions::Error object out of an error output section. slay πŸ’…

$output must match $TAP::Formatter::GitHubActions::Error::TRIPHASIC_REGEX β€” that’s the rule, iykyk.

🧸 new(%args)

Builds a new TAP::Formatter::GitHubActions::Error object. iconic behavior fr fr.

  • test_name β€” the name of the failing test; it’ll be used as a sort-of header.
  • filename β€” the file name where the test happened.
  • line β€” the line name where the test happened.
  • context_msg β€” any additional context provided.

Something similar to:

got: 1
expected: 2

πŸ’… METHODS πŸ’…

πŸŽ€ decorated_context_message($pre, $post)

Returns the context message decorated with optional $pre & $post strings. cute πŸŽ€

πŸͺž as_plain_text()

Returns the error in plain text. periodt πŸ’œ


πŸ’– xoxo, from perl v5.42.0 on 2023-12-08, signing off as TAP::Fo...::Error(3) πŸ’–

πŸ“¦ where this page comes from