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 magnolia
    Definition Classes
    test
  • package diff

    Use import zio.test.magnolia.diff._ to get automatic case class diffing when using smartAssert(result == SomeCaseClass("Nice", 123)).

    Use import zio.test.magnolia.diff._ to get automatic case class diffing when using smartAssert(result == SomeCaseClass("Nice", 123)).

    Definition Classes
    magnolia
  • DeriveGen

object DeriveGen

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

Type Members

  1. type Typeclass[T] = DeriveGen[T]

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 apply[A](implicit ev: DeriveGen[A]): Gen[Random with Sized, A]

    Derives a generator of A values given an implicit DeriveGen instance.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. def combine[T](caseClass: CaseClass[Typeclass, T]): Typeclass[T]
  8. def dispatch[T](sealedTrait: SealedTrait[Typeclass, T]): Typeclass[T]
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  12. implicit macro def gen[T]: Typeclass[T]
  13. implicit val genBigDecimal: DeriveGen[BigDecimal]
  14. implicit val genBoolean: DeriveGen[Boolean]
  15. implicit val genByte: DeriveGen[Byte]
  16. implicit val genChar: DeriveGen[Char]
  17. implicit val genDouble: DeriveGen[Double]
  18. implicit def genEither[A, B](implicit ev1: DeriveGen[A], ev2: DeriveGen[B]): DeriveGen[Either[A, B]]
  19. implicit val genFloat: DeriveGen[Float]
  20. implicit def genFunction[A, B](implicit ev: DeriveGen[B]): DeriveGen[(A) => B]
  21. implicit val genInstant: DeriveGen[Instant]
  22. implicit val genInt: DeriveGen[Int]
  23. implicit def genIterable[A](implicit ev: DeriveGen[A]): DeriveGen[Iterable[A]]
  24. implicit def genList[A](implicit ev: DeriveGen[A]): DeriveGen[List[A]]
  25. implicit val genLocalDate: DeriveGen[LocalDate]
  26. implicit val genLocalDateTime: DeriveGen[LocalDateTime]
  27. implicit val genLong: DeriveGen[Long]
  28. implicit def genMap[A, B](implicit ev1: DeriveGen[A], ev2: DeriveGen[B]): DeriveGen[Map[A, B]]
  29. implicit def genOption[A](implicit ev: DeriveGen[A]): DeriveGen[Option[A]]
  30. implicit def genPartialFunction[A, B](implicit ev: DeriveGen[B]): DeriveGen[PartialFunction[A, B]]
  31. implicit def genSeq[A](implicit ev: DeriveGen[A]): DeriveGen[Seq[A]]
  32. implicit def genSet[A](implicit ev: DeriveGen[A]): DeriveGen[Set[A]]
  33. implicit val genShort: DeriveGen[Short]
  34. implicit val genString: DeriveGen[String]
  35. implicit def genTuple10[A, B, C, D, F, G, H, I, J, K](implicit ev1: DeriveGen[A], ev2: DeriveGen[B], ev3: DeriveGen[C], ev4: DeriveGen[D], ev5: DeriveGen[F], ev6: DeriveGen[G], ev7: DeriveGen[H], ev8: DeriveGen[I], ev9: DeriveGen[J], ev10: DeriveGen[K]): DeriveGen[(A, B, C, D, F, G, H, I, J, K)]
  36. implicit def genTuple2[A, B](implicit ev1: DeriveGen[A], ev2: DeriveGen[B]): DeriveGen[(A, B)]
  37. implicit def genTuple3[A, B, C](implicit ev1: DeriveGen[A], ev2: DeriveGen[B], ev3: DeriveGen[C]): DeriveGen[(A, B, C)]
  38. implicit def genTuple4[A, B, C, D](implicit ev1: DeriveGen[A], ev2: DeriveGen[B], ev3: DeriveGen[C], ev4: DeriveGen[D]): DeriveGen[(A, B, C, D)]
  39. implicit def genTuple5[A, B, C, D, F](implicit ev1: DeriveGen[A], ev2: DeriveGen[B], ev3: DeriveGen[C], ev4: DeriveGen[D], ev5: DeriveGen[F]): DeriveGen[(A, B, C, D, F)]
  40. implicit def genTuple6[A, B, C, D, F, G](implicit ev1: DeriveGen[A], ev2: DeriveGen[B], ev3: DeriveGen[C], ev4: DeriveGen[D], ev5: DeriveGen[F], ev6: DeriveGen[G]): DeriveGen[(A, B, C, D, F, G)]
  41. implicit def genTuple7[A, B, C, D, F, G, H](implicit ev1: DeriveGen[A], ev2: DeriveGen[B], ev3: DeriveGen[C], ev4: DeriveGen[D], ev5: DeriveGen[F], ev6: DeriveGen[G], ev7: DeriveGen[H]): DeriveGen[(A, B, C, D, F, G, H)]
  42. implicit def genTuple8[A, B, C, D, F, G, H, I](implicit ev1: DeriveGen[A], ev2: DeriveGen[B], ev3: DeriveGen[C], ev4: DeriveGen[D], ev5: DeriveGen[F], ev6: DeriveGen[G], ev7: DeriveGen[H], ev8: DeriveGen[I]): DeriveGen[(A, B, C, D, F, G, H, I)]
  43. implicit def genTuple9[A, B, C, D, F, G, H, I, J](implicit ev1: DeriveGen[A], ev2: DeriveGen[B], ev3: DeriveGen[C], ev4: DeriveGen[D], ev5: DeriveGen[F], ev6: DeriveGen[G], ev7: DeriveGen[H], ev8: DeriveGen[I], ev9: DeriveGen[J]): DeriveGen[(A, B, C, D, F, G, H, I, J)]
  44. implicit val genUUID: DeriveGen[UUID]
  45. implicit val genUnit: DeriveGen[Unit]
  46. implicit def genVector[A](implicit ev: DeriveGen[A]): DeriveGen[Vector[A]]
  47. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  48. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  49. def instance[A](gen: Gen[Random with Sized, A]): DeriveGen[A]

    Constructs a DeriveGen instance given a generator of A values.

  50. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  51. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  52. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  53. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  54. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  55. def toString(): String
    Definition Classes
    AnyRef → Any
  56. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  57. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  58. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped