Packages

sealed trait AssertResult[+A] extends Product with Serializable

An AssertResult[A] is the result of running an assertion on a value. Assert results compose using logical && and || and all information will be preserved to provide robust reporting of test results.

Self Type
AssertResult[A]
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AssertResult
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def canEqual(that: Any): Boolean
    Definition Classes
    Equals
  2. abstract def productArity: Int
    Definition Classes
    Product
  3. abstract def productElement(n: Int): Any
    Definition Classes
    Product

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def &&[A1 >: A](that: AssertResult[A1]): AssertResult[A1]

    Returns a new assert result that is the logical conjunction of this assert result and the specified assert result.

  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. final def as[B](b: B): AssertResult[B]

    Returns a new assert result, with all values mapped to the specified constant.

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. final def both[A1 >: A](that: AssertResult[A1]): AssertResult[A1]

    A named alias for &&.

  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  9. final def collect[B](p: PartialFunction[A, B]): Option[AssertResult[B]]

    Returns a new assert result with a filtered, mapped subset of the values in this assert result.

  10. final def either[A1 >: A](that: AssertResult[A1]): AssertResult[A1]

    A named alias for ||.

  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  13. final def failures[B](implicit ev: <:<[A, Either[B, _]]): Option[AssertResult[B]]

    If this assert value is a success returns None.

    If this assert value is a success returns None. If it is a failure returns a new assert value containing all failures that are relevant to this assert value being a failure.

  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def fold[B](caseValue: (A) ⇒ B)(caseAnd: (B, B) ⇒ B, caseOr: (B, B) ⇒ B): B

    Folds over the assert result bottom up, first converting values to B values, and then combining the B values, using the specified functions.

  16. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def hashCode(): Int
    Definition Classes
    AssertResult → AnyRef → Any
  18. final def isFailure(implicit ev: <:<[A, Either[_, _]]): Boolean

    Determines whether the assert result is a failure, where Left represents failure, Right represents success, and values are combined using logical conjunction and disjunction.

  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. final def isSuccess(implicit ev: <:<[A, Either[_, _]]): Boolean

    Determines whether the assert result is a success, where Left represents failure, Right represents success, and values are combined using logical conjunction and disjunction.

  21. final def map[B](f: (A) ⇒ B): AssertResult[B]

    Returns a new assert result, with all values mapped by the specified function.

  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def not[B, C](implicit ev: <:<[A, Either[B, C]]): AssertResult[Either[C, B]]

    Negates this assert result, converting all successes into failures and failures into successes.

  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. def productIterator: Iterator[Any]
    Definition Classes
    Product
  27. def productPrefix: String
    Definition Classes
    Product
  28. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  33. final def ||[A1 >: A](that: AssertResult[A1]): AssertResult[A1]

    Returns a new assert result that is the logical disjunction of this assert result and the specified assert result.

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped