Packages

object MatchResult extends Serializable

Companion object for the MatchResult case class.

Source
MatchResult.scala
Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MatchResult
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def apply(matches: Boolean, rawFailureMessage: String, rawNegatedFailureMessage: String, failureMessageArgs: IndexedSeq[Any], negatedFailureMessageArgs: IndexedSeq[Any]): MatchResult

    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.

    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

  2. def apply(matches: Boolean, rawFailureMessage: String, rawNegatedFailureMessage: String, args: IndexedSeq[Any]): MatchResult

    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.

    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

  3. def apply(matches: Boolean, rawFailureMessage: String, rawNegatedFailureMessage: String): MatchResult

    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.

    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

  4. def apply(matches: Boolean, rawFailureMessage: String, rawNegatedFailureMessage: String, rawMidSentenceFailureMessage: String, rawMidSentenceNegatedFailureMessage: String): MatchResult

    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.

    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

  5. 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 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.

    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