object MatchResult extends Serializable
- Alphabetic
- By Inheritance
- MatchResult
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
apply(matches: Boolean, rawFailureMessage: String, rawNegatedFailureMessage: String, failureMessageArgs: IndexedSeq[Any], negatedFailureMessageArgs: IndexedSeq[Any]): MatchResult
Factory method that constructs a new
MatchResult
with passedmatches
,rawFailureMessage
,rawNegativeFailureMessage
,failureMessageArgs
andnegatedFailureMessageArgs
fields.Factory method that constructs a new
MatchResult
with passedmatches
,rawFailureMessage
,rawNegativeFailureMessage
,failureMessageArgs
andnegatedFailureMessageArgs
fields. TherawMidSentenceFailureMessage
will return the same string asrawFailureMessage
, and therawMidSentenceNegatedFailureMessage
will return the same string asrawNegatedFailureMessage
. ThemidSentenceFailureMessageArgs
will return the same asfailureMessageArgs
, and themidSentenceNegatedFailureMessageArgs
will return the same asnegatedFailureMessageArgs
. This is suitable to create MatchResult with lazy error messages that have same mid-sentence and use different arguments for negated messages.- matches
indicates whether or not the matcher matched
- rawFailureMessage
raw failure message to report if a match fails
- rawNegatedFailureMessage
raw message with a meaning opposite to that of the failure message
- failureMessageArgs
arguments for constructing failure message to report if a match fails
- negatedFailureMessageArgs
arguments for constructing message with a meaning opposite to that of the failure message
- returns
a
MatchResult
instance
-
def
apply(matches: Boolean, rawFailureMessage: String, rawNegatedFailureMessage: String, args: IndexedSeq[Any]): MatchResult
Factory method that constructs a new
MatchResult
with passedmatches
,rawFailureMessage
,rawNegativeFailureMessage
andargs
fields.Factory method that constructs a new
MatchResult
with passedmatches
,rawFailureMessage
,rawNegativeFailureMessage
andargs
fields. TherawMidSentenceFailureMessage
will return the same string asrawFailureMessage
, and therawMidSentenceNegatedFailureMessage
will return the same string asrawNegatedFailureMessage
. All argument fields will useargs
as arguments. This is suitable to create MatchResult with lazy error messages that have same mid-sentence messages and arguments.- matches
indicates whether or not the matcher matched
- rawFailureMessage
raw failure message to report if a match fails
- rawNegatedFailureMessage
raw message with a meaning opposite to that of the failure message
- args
arguments for error messages construction
- returns
a
MatchResult
instance
-
def
apply(matches: Boolean, rawFailureMessage: String, rawNegatedFailureMessage: String): MatchResult
Factory method that constructs a new
MatchResult
with passedmatches
,rawFailureMessage
, andrawNegativeFailureMessage
fields.Factory method that constructs a new
MatchResult
with passedmatches
,rawFailureMessage
, andrawNegativeFailureMessage
fields. TherawMidSentenceFailureMessage
will return the same string asrawFailureMessage
, and therawMidSentenceNegatedFailureMessage
will return the same string asrawNegatedFailureMessage
. All argument fields will haveVector.empty
values. This is suitable to create MatchResult with eager error messages that have same mid-sentence messages.- matches
indicates whether or not the matcher matched
- rawFailureMessage
raw failure message to report if a match fails
- rawNegatedFailureMessage
raw message with a meaning opposite to that of the failure message
- returns
a
MatchResult
instance
-
def
apply(matches: Boolean, rawFailureMessage: String, rawNegatedFailureMessage: String, rawMidSentenceFailureMessage: String, rawMidSentenceNegatedFailureMessage: String): MatchResult
Factory method that constructs a new
MatchResult
with passedmatches
,rawFailureMessage
,rawNegativeFailureMessage
,rawMidSentenceFailureMessage
, andrawMidSentenceNegatedFailureMessage
fields.Factory method that constructs a new
MatchResult
with passedmatches
,rawFailureMessage
,rawNegativeFailureMessage
,rawMidSentenceFailureMessage
, andrawMidSentenceNegatedFailureMessage
fields. All argument fields will haveVector.empty
values. This is suitable to create MatchResult with eager error messages, and its mid-sentence messages need to be different.- matches
indicates whether or not the matcher matched
- rawFailureMessage
raw failure message to report if a match fails
- rawNegatedFailureMessage
raw message with a meaning opposite to that of the failure message
- rawMidSentenceFailureMessage
raw failure message to report if a match fails
- rawMidSentenceNegatedFailureMessage
raw message with a meaning opposite to that of the failure message
- returns
a
MatchResult
instance
-
def
apply(matches: Boolean, rawFailureMessage: String, rawNegatedFailureMessage: String, rawMidSentenceFailureMessage: String, rawMidSentenceNegatedFailureMessage: String, failureMessageArgs: IndexedSeq[Any], negatedFailureMessageArgs: IndexedSeq[Any]): MatchResult
Factory method that constructs a new
MatchResult
with passedmatches
,failureMessage
,negativeFailureMessage
,midSentenceFailureMessage
,midSentenceNegatedFailureMessage
,failureMessageArgs
, andnegatedFailureMessageArgs
fields.Factory method that constructs a new
MatchResult
with passedmatches
,failureMessage
,negativeFailureMessage
,midSentenceFailureMessage
,midSentenceNegatedFailureMessage
,failureMessageArgs
, andnegatedFailureMessageArgs
fields.failureMessageArgs
, andnegatedFailureMessageArgs
will be used in place ofmidSentenceFailureMessageArgs
andmidSentenceNegatedFailureMessageArgs
.- matches
indicates whether or not the matcher matched
- rawFailureMessage
raw failure message to report if a match fails
- rawNegatedFailureMessage
raw message with a meaning opposite to that of the failure message
- rawMidSentenceFailureMessage
raw failure message to report if a match fails
- rawMidSentenceNegatedFailureMessage
raw message with a meaning opposite to that of the failure message
- failureMessageArgs
arguments for constructing failure message to report if a match fails
- negatedFailureMessageArgs
arguments for constructing message with a meaning opposite to that of the failure message
- returns
a
MatchResult
instance