Class/Object

zio.test

Assertion

Related Docs: object Assertion | package test

Permalink

class Assertion[-A] extends (⇒ A) ⇒ AssertResult

An Assertion[A] is capable of producing assertion results on an A. As a proposition, assertions compose using logical conjuction and disjunction, and can be negated.

Self Type
Assertion[A]
Linear Supertypes
(⇒ A) ⇒ AssertResult, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Assertion
  2. Function1
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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: ⇒ Assertion[A1]): Assertion[A1]

    Permalink

    Returns a new assertion that succeeds only if both assertions succeed.

  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  5. def andThen[A](g: (AssertResult) ⇒ A): (⇒ A) ⇒ A

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  6. final def apply(a: ⇒ A): AssertResult

    Permalink

    Evaluates the assertion with the specified value.

    Evaluates the assertion with the specified value.

    Definition Classes
    Assertion → Function1
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def compose[A](g: (A) ⇒ ⇒ A): (A) ⇒ AssertResult

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. final def equals(that: Any): Boolean

    Permalink
    Definition Classes
    Assertion → AnyRef → Any
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    Assertion → AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def negate: Assertion[A]

    Permalink

    Returns the negation of this assertion.

  18. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  20. val render: Render

    Permalink
  21. val run: (⇒ A) ⇒ AssertResult

    Permalink
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. final def test(a: A): Boolean

    Permalink

    Tests the assertion to see if it would succeed on the given element.

  24. final def toString(): String

    Permalink

    Provides a meaningful string rendering of the assertion.

    Provides a meaningful string rendering of the assertion.

    Definition Classes
    Assertion → Function1 → AnyRef → Any
  25. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def ||[A1 <: A](that: ⇒ Assertion[A1]): Assertion[A1]

    Permalink

    Returns a new assertion that succeeds if either assertion succeeds.

Inherited from (⇒ A) ⇒ AssertResult

Inherited from AnyRef

Inherited from Any

Ungrouped