Packages

final 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 conjunction 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
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def &&[A1 <: A](that: ⇒ Assertion[A1]): Assertion[A1]

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

  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. def ??(string: String): Assertion[A]

    A symbolic alias for label.

  6. def andThen[A](g: (AssertResult) ⇒ A): (⇒ A) ⇒ A
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  7. def apply(a: ⇒ A): AssertResult

    Evaluates the assertion with the specified value.

    Evaluates the assertion with the specified value.

    Definition Classes
    Assertion → Function1
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  10. def compose[A](g: (A) ⇒ ⇒ A): (A) ⇒ AssertResult
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  11. val diffing: (A) ⇒ Option[DiffResult]
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(that: Any): Boolean
    Definition Classes
    Assertion → AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def hashCode(): Int
    Definition Classes
    Assertion → AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def label(string: String): Assertion[A]

    Labels this assertion with the specified string.

  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. def negate: Assertion[A]

    Returns the negation of this assertion.

  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. val render: Render
  24. val run: (⇒ A) ⇒ AssertResult
  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. def test(a: A): ZIO[Any, Nothing, Boolean]

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

  27. def toString(): String

    Provides a meaningful string rendering of the assertion.

    Provides a meaningful string rendering of the assertion.

    Definition Classes
    Assertion → Function1 → AnyRef → Any
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  31. def withDiffing[A1 <: A, B](expected: B, diffing: Diffing): Assertion[A1]

    Constructs a new assertion with given expected value and diffing strategy

  32. def ||[A1 <: A](that: ⇒ Assertion[A1]): Assertion[A1]

    Returns a new assertion that succeeds if either assertion succeeds.

Inherited from (⇒ A) ⇒ AssertResult

Inherited from AnyRef

Inherited from Any

Ungrouped