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
    import Assertion.isGreaterThan
    
    object MyTest extends DefaultRunnableSpec {
      def spec = suite("clock")(
        test("time is non-zero") {
          for {
            time <- Live.live(nanoTime)
          } yield assertTrue(time >= 0)
        }
      )
    }
    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. def anything: TestArrow[Any, Boolean]
  5. def as[A, B](implicit CB: ClassTag[B]): TestArrow[A, B]
  6. def asCauseDie[E]: TestArrow[Cause[E], Throwable]
  7. def asCauseFailure[E]: TestArrow[Cause[E], E]
  8. def asCauseInterrupted[E]: TestArrow[Cause[E], Boolean]
  9. def asExitCause[E, A]: TestArrow[Exit[E, A], Cause[E]]
  10. def asExitDie[E, A]: TestArrow[Exit[E, A], Throwable]
  11. def asExitFailure[E, A]: TestArrow[Exit[E, A], E]
  12. def asExitInterrupted[E, A]: TestArrow[Exit[E, A], Boolean]
  13. def asExitSuccess[E, A]: TestArrow[Exit[E, A], A]
  14. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  15. def asLeft[A]: TestArrow[Either[A, _], A]
  16. def asRight[A]: TestArrow[Either[_, A], A]
  17. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  18. def containsOption[A](value: A): TestArrow[Option[A], Boolean]
  19. def containsSeq[A](value: A): TestArrow[Seq[A], Boolean]
  20. def containsString(value: String): TestArrow[String, Boolean]
  21. def custom[A, B](customAssertion: CustomAssertion[A, B]): TestArrow[A, B]
  22. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. def equalTo[A](that: A)(implicit diff: OptionalImplicit[Diff[A]]): TestArrow[A, Boolean]
  24. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  25. def existsIterable[A](predicate: TestArrow[A, Boolean]): TestArrow[Iterable[A], Boolean]
  26. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  27. def forallIterable[A](predicate: TestArrow[A, Boolean]): TestArrow[Iterable[A], Boolean]
  28. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  29. def greaterThan[A](that: A)(implicit ordering: Ordering[A]): TestArrow[A, Boolean]
  30. def greaterThanOrEqualTo[A](that: A)(implicit ordering: Ordering[A]): TestArrow[A, Boolean]
  31. def hasAt[A](index: Int): TestArrow[Seq[A], A]
  32. def hasKey[K, V](key: K): TestArrow[Map[K, V], V]
  33. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  34. def head[A]: TestArrow[Iterable[A], A]
  35. def is[A, B](implicit CB: ClassTag[B]): TestArrow[A, Boolean]
  36. def isDefinedOption[A]: TestArrow[Option[A], Boolean]
  37. def isEmptyIterable[A]: TestArrow[Iterable[A], Boolean]
  38. def isEmptyOption[A]: TestArrow[Option[A], Boolean]
  39. def isEven[A](implicit integral: Integral[A]): TestArrow[A, Boolean]
  40. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  41. def isNonEmptyIterable[A]: TestArrow[Iterable[A], Boolean]
  42. def isOdd[A](implicit integral: Integral[A]): TestArrow[A, Boolean]
  43. def isSome[A]: TestArrow[Option[A], A]
  44. def lessThan[A](that: A)(implicit ordering: Ordering[A]): TestArrow[A, Boolean]
  45. def lessThanOrEqualTo[A](that: A)(implicit ordering: Ordering[A]): TestArrow[A, Boolean]
  46. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  47. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  48. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  49. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  50. val throws: TestArrow[Any, Throwable]
  51. def toString(): String
    Definition Classes
    AnyRef → Any
  52. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  53. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  54. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped