Packages

  • package root
    Definition Classes
    root
  • package zio
    Definition Classes
    root
  • package test

    _ZIO Test_ is a featherweight testing library for effectful programs.

    _ZIO Test_ is a featherweight testing library for effectful programs.

    The library imagines every spec as an ordinary immutable value, providing tremendous potential for composition. Thanks to tight integration with ZIO, specs can use resources (including those requiring disposal), have well- defined linear and parallel semantics, and can benefit from a host of ZIO combinators.

    import zio.test._
    import zio.clock.nanoTime
    import Assertion.isGreaterThan
    
    object MyTest extends DefaultRunnableSpec {
      suite("clock") {
        testM("time is non-zero") {
          assertM(nanoTime, isGreaterThan(0))
        }
      }
    }
    Definition Classes
    zio
  • object AssertResult extends Serializable
    Definition Classes
    test
  • And
  • Or
  • Value

final case class Value[+A](value: A) extends AssertResult[A] with Product with Serializable

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Value
  2. AssertResult
  3. Serializable
  4. Serializable
  5. Product
  6. Equals
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Value(value: A)

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.

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

    Definition Classes
    AssertResult
  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.

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

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

    A named alias for &&.

    A named alias for &&.

    Definition Classes
    AssertResult
  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.

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

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

    A named alias for ||.

    A named alias for ||.

    Definition Classes
    AssertResult
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. 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.

    Definition Classes
    AssertResult
  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. 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.

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

    Definition Classes
    AssertResult
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. final def hashCode(): Int
    Definition Classes
    AssertResult → AnyRef → Any
  17. 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.

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

    Definition Classes
    AssertResult
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. 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.

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

    Definition Classes
    AssertResult
  20. final def map[B](f: (A) ⇒ B): AssertResult[B]

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

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

    Definition Classes
    AssertResult
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. 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.

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

    Definition Classes
    AssertResult
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. val value: A
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  30. 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.

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

    Definition Classes
    AssertResult

Inherited from AssertResult[A]

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped