Object/Class

zio.test

Assertion

Related Docs: class Assertion | package test

Permalink

object Assertion

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Assertion
  2. AnyRef
  3. 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 ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final val anything: Assertion[Any]

    Permalink

    Makes a new assertion that always succeeds.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. final def assertion[A](render: String)(run: (⇒ A) ⇒ AssertResult[Either[Unit, Unit]]): Assertion[A]

    Permalink

    Makes a new Assertion from a pretty-printing and a function.

  7. final def assertionDirect[A](render: String)(run: (⇒ A) ⇒ AssertResult[Either[AssertionValue, Unit]]): Assertion[A]

    Permalink

    Makes a new Assertion from a pretty-printing and a function.

  8. final def assertionRec[A](render: String)(run: (Assertion[A], ⇒ A) ⇒ AssertResult[Either[AssertionValue, Unit]]): Assertion[A]

    Permalink

    Makes a new Assertion from a pretty-printing and a function, passing the assertion itself to the specified function, so it can embed a recursive reference into the assert result.

  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def contains[A](element: A): Assertion[Iterable[A]]

    Permalink

    Makes a new assertion that requires an iterable contain the specified element.

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

    Permalink
    Definition Classes
    AnyRef
  12. final def equalTo[A](expected: A): Assertion[A]

    Permalink

    Makes a new assertion that requires a value equal the specified value.

  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def exists[A](assertion: Assertion[A]): Assertion[Iterable[A]]

    Permalink

    Makes a new assertion that requires an iterable contain one element satisfying the given assertion.

  15. final def fails[E](assertion: Assertion[E]): Assertion[Exit[E, Any]]

    Permalink

    Makes a new assertion that requires an exit value to fail.

  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def forall[A](assertion: Assertion[A]): Assertion[Iterable[A]]

    Permalink

    Makes a new assertion that requires an iterable contain only elements satisfying the given assertion.

  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def hasField[A, B](name: String, proj: (A) ⇒ B, assertion: Assertion[B]): Assertion[A]

    Permalink

    Makes a new assertion that focuses in on a field in a case class.

    Makes a new assertion that focuses in on a field in a case class.

    hasField("age", _.age, within(0, 10))
  20. final def hasSize[A](assertion: Assertion[Int]): Assertion[Iterable[A]]

    Permalink

    Makes a new assertion that requires the size of an iterable be satisfied by the specified assertion.

  21. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def isCase[Sum, Proj](termName: String, term: (Sum) ⇒ Option[Proj], assertion: Assertion[Proj]): Assertion[Sum]

    Permalink

    Makes a new assertion that requires the sum type be a specified term.

    Makes a new assertion that requires the sum type be a specified term.

    isCase("Some", Some.unapply, anything)
  23. final def isFalse: Assertion[Boolean]

    Permalink

    Makes a new assertion that requires a value be true.

  24. final def isGreaterThan[A](reference: A)(implicit arg0: Numeric[A]): Assertion[A]

    Permalink

    Makes a new assertion that requires the numeric value be greater than the specified reference value.

  25. final def isGreaterThanEqualTo[A](reference: A)(implicit arg0: Numeric[A]): Assertion[A]

    Permalink

    Makes a new assertion that requires the numeric value be greater than or equal to the specified reference value.

  26. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  27. final def isInterrupted: Assertion[Exit[Any, Any]]

    Permalink

    Makes a new assertion that requires an exit value to be interrupted.

  28. final def isLeft[A](assertion: Assertion[A]): Assertion[Either[A, Any]]

    Permalink

    Makes a new assertion that requires a Left value satisfying a specified assertion.

  29. final def isLessThan[A](reference: A)(implicit arg0: Numeric[A]): Assertion[A]

    Permalink

    Makes a new assertion that requires the numeric value be less than the specified reference value.

  30. final def isLessThanEqualTo[A](reference: A)(implicit arg0: Numeric[A]): Assertion[A]

    Permalink

    Makes a new assertion that requires the numeric value be less than or equal to the specified reference value.

  31. final val isNone: Assertion[Option[Any]]

    Permalink

    Makes a new assertion that requires a None value.

  32. final def isRight[A](assertion: Assertion[A]): Assertion[Either[Any, A]]

    Permalink

    Makes a new assertion that requires a Right value satisfying a specified assertion.

  33. final def isSome[A](assertion: Assertion[A]): Assertion[Option[A]]

    Permalink

    Makes a new assertion that requires a Some value satisfying the specified assertion.

  34. final def isSubtype[A](assertion: Assertion[A])(implicit C: ClassTag[A]): Assertion[Any]

    Permalink

    Makes an assertion that requires a value have the specified type.

  35. final def isTrue: Assertion[Boolean]

    Permalink

    Makes a new assertion that requires a value be true.

  36. final def isUnit: Assertion[Any]

    Permalink

    Makes a new assertion that requires the value be unit.

  37. final def isWithin[A](min: A, max: A)(implicit arg0: Numeric[A]): Assertion[A]

    Permalink

    Returns a new assertion that requires a numeric value to fall within a specified min and max (inclusive).

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

    Permalink
    Definition Classes
    AnyRef
  39. final def not[A](assertion: Assertion[A]): Assertion[A]

    Permalink

    Makes a new assertion that negates the specified assertion.

  40. final val nothing: Assertion[Any]

    Permalink

    Makes a new assertion that always fails.

  41. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  43. final def succeeds[A](assertion: Assertion[A]): Assertion[Exit[Any, A]]

    Permalink

    Makes a new assertion that requires an exit value to succeed.

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

    Permalink
    Definition Classes
    AnyRef
  45. final def throws[A](assertion: Assertion[Throwable]): Assertion[A]

    Permalink

    Returns a new assertion that requires the expression to throw.

  46. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped