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 clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  19. def containsCause[E](expected: Cause[E]): TestArrow[Cause[E], Boolean]
  20. def containsIterable[A](value: A): TestArrow[Iterable[A], Boolean]
  21. def containsOption[A](value: A): TestArrow[Option[A], Boolean]
  22. def containsSeq[A, B >: A](value: A): TestArrow[Seq[B], Boolean]
  23. def containsString(value: String): TestArrow[String, Boolean]
  24. def custom[A, B](customAssertion: CustomAssertion[A, B]): TestArrow[A, B]
  25. def endsWithSeq[A](postfix: Seq[A]): TestArrow[Seq[A], Boolean]
  26. def endsWithString(postfix: String): TestArrow[String, Boolean]
  27. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. def equalTo[A](that: A)(implicit diff: OptionalImplicit[Diff[A]]): TestArrow[A, Boolean]
  29. def equalToL[A, B](that: B)(implicit diff: OptionalImplicit[Diff[B]], conv: (A) => B): TestArrow[A, Boolean]
  30. def equalToR[A, B](that: B)(implicit diff: OptionalImplicit[Diff[A]], conv: (B) => A): TestArrow[A, Boolean]
  31. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  32. def existsIterable[A](predicate: TestArrow[A, Boolean]): TestArrow[Iterable[A], Boolean]
  33. def forallIterable[A](predicate: TestArrow[A, Boolean]): TestArrow[Iterable[A], Boolean]
  34. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  35. def greaterThan[A](that: A)(implicit ordering: Ordering[A]): TestArrow[A, Boolean]
  36. def greaterThanL[A, B](that: B)(implicit ordering: Ordering[B], conv: (A) => B): TestArrow[A, Boolean]
  37. def greaterThanOrEqualTo[A](that: A)(implicit ordering: Ordering[A]): TestArrow[A, Boolean]
  38. def greaterThanOrEqualToL[A, B](that: B)(implicit ordering: Ordering[B], conv: (A) => B): TestArrow[A, Boolean]
  39. def greaterThanOrEqualToR[A, B](that: B)(implicit ordering: Ordering[A], conv: (B) => A): TestArrow[A, Boolean]
  40. def greaterThanR[A, B](that: B)(implicit ordering: Ordering[A], conv: (B) => A): TestArrow[A, Boolean]
  41. def hasAt[A](index: Int): TestArrow[Seq[A], A]
  42. def hasField[A, B](name: String, proj: (A) => B): TestArrow[A, B]
  43. def hasKey[K, V](key: K): TestArrow[Map[K, V], V]
  44. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  45. def head[A]: TestArrow[Iterable[A], A]
  46. def is[A, B](implicit CB: ClassTag[B]): TestArrow[A, Boolean]
  47. def isDefinedOption: TestArrow[Option[Any], Boolean]
  48. def isEmptyIterable[A]: TestArrow[Iterable[A], Boolean]
  49. def isEmptyOption: TestArrow[Option[Any], Boolean]
  50. def isEmptyString: TestArrow[String, Boolean]
  51. def isEven[A](implicit integral: Integral[A]): TestArrow[A, Boolean]
  52. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  53. def isNonEmptyIterable: TestArrow[Iterable[Any], Boolean]
  54. def isNonEmptyString: TestArrow[String, Boolean]
  55. def isOdd[A](implicit integral: Integral[A]): TestArrow[A, Boolean]
  56. def isSome[A]: TestArrow[Option[A], A]
  57. def last[A]: TestArrow[Iterable[A], A]
  58. def lessThan[A](that: A)(implicit ordering: Ordering[A]): TestArrow[A, Boolean]
  59. def lessThanL[A, B](that: B)(implicit ordering: Ordering[B], conv: (A) => B): TestArrow[A, Boolean]
  60. def lessThanOrEqualTo[A](that: A)(implicit ordering: Ordering[A]): TestArrow[A, Boolean]
  61. def lessThanOrEqualToL[A, B](that: B)(implicit ordering: Ordering[B], conv: (A) => B): TestArrow[A, Boolean]
  62. def lessThanOrEqualToR[A, B](that: B)(implicit ordering: Ordering[A], conv: (B) => A): TestArrow[A, Boolean]
  63. def lessThanR[A, B](that: B)(implicit ordering: Ordering[A], conv: (B) => A): TestArrow[A, Boolean]
  64. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  65. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  66. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  67. def startsWithSeq[A](prefix: Seq[A]): TestArrow[Seq[A], Boolean]
  68. def startsWithString(prefix: String): TestArrow[String, Boolean]
  69. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  70. val throws: TestArrow[Any, Throwable]
  71. def toString(): String
    Definition Classes
    AnyRef → Any
  72. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  73. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  74. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

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