Trait/Object

zio.test

AssertResult

Related Docs: object AssertResult | package test

Permalink

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]
Linear Supertypes
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

    Permalink
    Definition Classes
    Equals
  2. abstract def productArity: Int

    Permalink
    Definition Classes
    Product
  3. abstract def productElement(n: Int): Any

    Permalink
    Definition Classes
    Product

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def &&[A1 >: A](that: AssertResult[A1]): AssertResult[A1]

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef → Any
  5. final def as[B](b: B): AssertResult[B]

    Permalink

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

  6. final def asInstanceOf[T0]: T0

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

    Permalink

    A named alias for &&.

  8. def clone(): AnyRef

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

    Permalink

    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]

    Permalink

    A named alias for ||.

  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def failures[B](implicit ev: <:<[A, Either[B, _]]): Option[AssertResult[B]]

    Permalink

    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

    Permalink
    Attributes
    protected[java.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

    Permalink

    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[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def hashCode(): Int

    Permalink
    Definition Classes
    AssertResult → AnyRef → Any
  18. final def isFailure(implicit ev: <:<[A, Either[_, _]]): Boolean

    Permalink

    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

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

    Permalink

    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]

    Permalink

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

  22. final def ne(arg0: AnyRef): Boolean

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

    Permalink

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

  24. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. def productIterator: Iterator[Any]

    Permalink
    Definition Classes
    Product
  27. def productPrefix: String

    Permalink
    Definition Classes
    Product
  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  29. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  30. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def ||[A1 >: A](that: AssertResult[A1]): AssertResult[A1]

    Permalink

    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