Scroll to navigation

TAP::Formatter::GitHubActions::Error(3) User Contributed Perl Documentation TAP::Formatter::GitHubActions::Error(3)

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.

$output must match $TAP::Formatter::GitHubActions::Error::TRIPHASIC_REGEX

new(%args)

Builds a new "TAP::Formatter::GitHubActions::Error" object.

The name of the failing test, it'll be used as a sort-of header.
The file name where the test happened.
The line name where the test happened.
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.

as_plain_text()

Returns the error in plain text.

2023-12-08 perl v5.40.0