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
    
    object MyTest extends ZIOSpecDefault {
      def spec = suite("clock")(
        test("time is non-zero") {
          for {
            time <- Live.live(nanoTime)
          } yield assertTrue(time >= 0L)
        }
      )
    }
    Definition Classes
    zio
  • package internal
    Definition Classes
    test
  • package myers
    Definition Classes
    internal
  • LowPriOptionalImplicit
  • OptionalImplicit
  • SmartAssertions
o

zio.test.internal

SmartAssertions

object SmartAssertions

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SmartAssertions
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val anything: TestArrow[Any, Boolean]
  5. def approximatelyEquals[A](reference: A, tolerance: A)(implicit arg0: Numeric[A]): TestArrow[A, Boolean]
  6. def as[A, B](implicit CB: ClassTag[B]): TestArrow[A, B]
  7. def asCauseDie[E]: TestArrow[Cause[E], Throwable]
  8. def asCauseFailure[E]: TestArrow[Cause[E], E]
  9. def asCauseInterrupted[E]: TestArrow[Cause[E], Boolean]
  10. def asExitCause[E]: TestArrow[Exit[E, Any], Cause[E]]
  11. def asExitDie[E, A]: TestArrow[Exit[E, A], Throwable]
  12. def asExitFailure[E]: TestArrow[Exit[E, Any], E]
  13. def asExitInterrupted[E, A]: TestArrow[Exit[E, A], Boolean]
  14. def asExitSuccess[E, A]: TestArrow[Exit[E, A], A]
  15. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  16. def asLeft[A]: TestArrow[Either[A, _], A]
  17. def asRight[A]: TestArrow[Either[_, A], A]
  18. def asTryFailure[A]: TestArrow[Try[A], Throwable]
  19. def asTrySuccess[A]: TestArrow[Try[A], A]
  20. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  21. def containsCause[E](expected: Cause[E]): TestArrow[Cause[E], Boolean]
  22. def containsIterable[A](value: A): TestArrow[Iterable[A], Boolean]
  23. def containsOption[A](value: A): TestArrow[Option[A], Boolean]
  24. def containsSeq[A, B >: A](value: A): TestArrow[Seq[B], Boolean]
  25. def containsString(value: String): TestArrow[String, Boolean]
  26. def custom[A, B](customAssertion: CustomAssertion[A, B]): TestArrow[A, B]
  27. def endsWithSeq[A](postfix: Seq[A]): TestArrow[Seq[A], Boolean]
  28. def endsWithString(postfix: String): TestArrow[String, Boolean]
  29. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. def equalTo[A](that: A)(implicit diff: OptionalImplicit[Diff[A]]): TestArrow[A, Boolean]
  31. def equalToL[A, B](that: B)(implicit diff: OptionalImplicit[Diff[B]], conv: (A) => B): TestArrow[A, Boolean]
  32. def equalToR[A, B](that: B)(implicit diff: OptionalImplicit[Diff[A]], conv: (B) => A): TestArrow[A, Boolean]
  33. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  34. def existsIterable[A](predicate: TestArrow[A, Boolean]): TestArrow[Iterable[A], Boolean]
  35. def forallIterable[A](predicate: TestArrow[A, Boolean]): TestArrow[Iterable[A], Boolean]
  36. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  37. def greaterThan[A](that: A)(implicit ordering: Ordering[A]): TestArrow[A, Boolean]
  38. def greaterThanL[A, B](that: B)(implicit ordering: Ordering[B], conv: (A) => B): TestArrow[A, Boolean]
  39. def greaterThanOrEqualTo[A](that: A)(implicit ordering: Ordering[A]): TestArrow[A, Boolean]
  40. def greaterThanOrEqualToL[A, B](that: B)(implicit ordering: Ordering[B], conv: (A) => B): TestArrow[A, Boolean]
  41. def greaterThanOrEqualToR[A, B](that: B)(implicit ordering: Ordering[A], conv: (B) => A): TestArrow[A, Boolean]
  42. def greaterThanR[A, B](that: B)(implicit ordering: Ordering[A], conv: (B) => A): TestArrow[A, Boolean]
  43. def hasAt[A](index: Int): TestArrow[Seq[A], A]
  44. def hasField[A, B](name: String, proj: (A) => B): TestArrow[A, B]
  45. def hasKey[K, V](key: K): TestArrow[Map[K, V], V]
  46. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  47. def head[A]: TestArrow[Iterable[A], A]
  48. def is[A, B](implicit CB: ClassTag[B]): TestArrow[A, Boolean]
  49. def isDefinedOption: TestArrow[Option[Any], Boolean]
  50. def isEmptyIterable[A]: TestArrow[Iterable[A], Boolean]
  51. def isEmptyOption: TestArrow[Option[Any], Boolean]
  52. def isEmptyString: TestArrow[String, Boolean]
  53. def isEven[A](implicit integral: Integral[A]): TestArrow[A, Boolean]
  54. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  55. def isNonEmptyIterable: TestArrow[Iterable[Any], Boolean]
  56. def isNonEmptyString: TestArrow[String, Boolean]
  57. def isOdd[A](implicit integral: Integral[A]): TestArrow[A, Boolean]
  58. def isSome[A]: TestArrow[Option[A], A]
  59. def last[A]: TestArrow[Iterable[A], A]
  60. def lessThan[A](that: A)(implicit ordering: Ordering[A]): TestArrow[A, Boolean]
  61. def lessThanL[A, B](that: B)(implicit ordering: Ordering[B], conv: (A) => B): TestArrow[A, Boolean]
  62. def lessThanOrEqualTo[A](that: A)(implicit ordering: Ordering[A]): TestArrow[A, Boolean]
  63. def lessThanOrEqualToL[A, B](that: B)(implicit ordering: Ordering[B], conv: (A) => B): TestArrow[A, Boolean]
  64. def lessThanOrEqualToR[A, B](that: B)(implicit ordering: Ordering[A], conv: (B) => A): TestArrow[A, Boolean]
  65. def lessThanR[A, B](that: B)(implicit ordering: Ordering[A], conv: (B) => A): TestArrow[A, Boolean]
  66. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  67. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  68. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  69. def startsWithSeq[A](prefix: Seq[A]): TestArrow[Seq[A], Boolean]
  70. def startsWithString(prefix: String): TestArrow[String, Boolean]
  71. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  72. val throws: TestArrow[Any, Throwable]
  73. def toString(): String
    Definition Classes
    AnyRef → Any
  74. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  75. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  76. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  77. object Implicits

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped