Factory method that constructs a new MatchResult with passed matches, rawFailureMessage,
rawNegativeFailureMessage, failureMessageArgs and negatedFailureMessageArgs fields.
Factory method that constructs a new MatchResult with passed matches, rawFailureMessage,
rawNegativeFailureMessage, failureMessageArgs and negatedFailureMessageArgs fields.
The rawMidSentenceFailureMessage will return the same string as rawFailureMessage, and the
rawMidSentenceNegatedFailureMessage will return the same string as rawNegatedFailureMessage.
The midSentenceFailureMessageArgs will return the same as failureMessageArgs, and the
midSentenceNegatedFailureMessageArgs will return the same as negatedFailureMessageArgs.
This is suitable to create MatchResult with lazy error messages that have same mid-sentence and use different arguments for
negated messages.
indicates whether or not the matcher matched
raw failure message to report if a match fails
raw message with a meaning opposite to that of the failure message
arguments for constructing failure message to report if a match fails
arguments for constructing message with a meaning opposite to that of the failure message
a MatchResult instance
Factory method that constructs a new MatchResult with passed matches, rawFailureMessage,
rawNegativeFailureMessage and args fields.
Factory method that constructs a new MatchResult with passed matches, rawFailureMessage,
rawNegativeFailureMessage and args fields. The rawMidSentenceFailureMessage will return the same
string as rawFailureMessage, and the rawMidSentenceNegatedFailureMessage will return the
same string as rawNegatedFailureMessage. All argument fields will use args as arguments.
This is suitable to create MatchResult with lazy error messages that have same mid-sentence messages and arguments.
indicates whether or not the matcher matched
raw failure message to report if a match fails
raw message with a meaning opposite to that of the failure message
arguments for error messages construction
a MatchResult instance
Factory method that constructs a new MatchResult with passed matches, rawFailureMessage, and
rawNegativeFailureMessage fields.
Factory method that constructs a new MatchResult with passed matches, rawFailureMessage, and
rawNegativeFailureMessage fields. The rawMidSentenceFailureMessage will return the same
string as rawFailureMessage, and the rawMidSentenceNegatedFailureMessage will return the
same string as rawNegatedFailureMessage. All argument fields will have Vector.empty values.
This is suitable to create MatchResult with eager error messages that have same mid-sentence messages.
indicates whether or not the matcher matched
raw failure message to report if a match fails
raw message with a meaning opposite to that of the failure message
a MatchResult instance
Factory method that constructs a new MatchResult with passed matches, rawFailureMessage,
rawNegativeFailureMessage, rawMidSentenceFailureMessage, and
rawMidSentenceNegatedFailureMessage fields.
Factory method that constructs a new MatchResult with passed matches, rawFailureMessage,
rawNegativeFailureMessage, rawMidSentenceFailureMessage, and
rawMidSentenceNegatedFailureMessage fields. All argument fields will have Vector.empty values.
This is suitable to create MatchResult with eager error messages, and its mid-sentence messages need to be different.
indicates whether or not the matcher matched
raw failure message to report if a match fails
raw message with a meaning opposite to that of the failure message
raw failure message to report if a match fails
raw message with a meaning opposite to that of the failure message
a MatchResult instance
Factory method that constructs a new MatchResult with passed matches, failureMessage,
negativeFailureMessage, midSentenceFailureMessage,
midSentenceNegatedFailureMessage, failureMessageArgs, and negatedFailureMessageArgs fields.
Factory method that constructs a new MatchResult with passed matches, failureMessage,
negativeFailureMessage, midSentenceFailureMessage,
midSentenceNegatedFailureMessage, failureMessageArgs, and negatedFailureMessageArgs fields.
failureMessageArgs, and negatedFailureMessageArgs will be used in place of midSentenceFailureMessageArgs
and midSentenceNegatedFailureMessageArgs.
indicates whether or not the matcher matched
raw failure message to report if a match fails
raw message with a meaning opposite to that of the failure message
raw failure message to report if a match fails
raw message with a meaning opposite to that of the failure message
arguments for constructing failure message to report if a match fails
arguments for constructing message with a meaning opposite to that of the failure message
a MatchResult instance
Companion object for the
MatchResultcase class.