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.

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.

as_plain_text()

Returns the error in plain text.