Object/Class

zio.test

Gen

Related Docs: class Gen | package test

Permalink

object Gen extends GenZIO with FunctionVariants with TimeVariants with Serializable

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Gen
  2. Serializable
  3. Serializable
  4. TimeVariants
  5. FunctionVariants
  6. GenZIO
  7. AnyRef
  8. 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. val alphaChar: Gen[Has[Random], Char]

    Permalink

    A generator of alpha characters.

  5. val alphaNumericChar: Gen[Has[Random], Char]

    Permalink

    A generator of alphanumeric characters.

    A generator of alphanumeric characters. Shrinks toward '0'.

  6. val alphaNumericString: Gen[Has[Random] with Has[Sized], String]

    Permalink

    A generator of alphanumeric strings.

    A generator of alphanumeric strings. Shrinks towards the empty string.

  7. def alphaNumericStringBounded(min: Int, max: Int): Gen[Has[Random] with Has[Sized], String]

    Permalink

    A generator of alphanumeric strings whose size falls within the specified bounds.

  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. val asciiChar: Gen[Has[Random], Char]

    Permalink

    A generator of US-ASCII characters.

    A generator of US-ASCII characters. Shrinks toward '0'.

  10. val asciiString: Gen[Has[Random] with Has[Sized], String]

    Permalink

    A generator US-ASCII strings.

    A generator US-ASCII strings. Shrinks towards the empty string.

  11. def bigDecimal(min: BigDecimal, max: BigDecimal): Gen[Has[Random], BigDecimal]

    Permalink

    A generator of big decimals inside the specified range: [start, end].

    A generator of big decimals inside the specified range: [start, end]. The shrinker will shrink toward the lower end of the range ("smallest").

    The values generated will have a precision equal to the precision of the difference between max and min.

  12. def bigInt(min: BigInt, max: BigInt): Gen[Has[Random], BigInt]

    Permalink

    A generator of big integers inside the specified range: [start, end].

    A generator of big integers inside the specified range: [start, end]. The shrinker will shrink toward the lower end of the range ("smallest").

  13. val boolean: Gen[Has[Random], Boolean]

    Permalink

    A generator of booleans.

    A generator of booleans. Shrinks toward 'false'.

  14. def bounded[R <: Has[Random], A](min: Int, max: Int)(f: (Int) ⇒ Gen[R, A]): Gen[R, A]

    Permalink

    A generator whose size falls within the specified bounds.

  15. def byte(min: Byte, max: Byte): Gen[Has[Random], Byte]

    Permalink

    A generator of byte values inside the specified range: [start, end].

    A generator of byte values inside the specified range: [start, end]. The shrinker will shrink toward the lower end of the range ("smallest").

  16. val byte: Gen[Has[Random], Byte]

    Permalink

    A generator of bytes.

    A generator of bytes. Shrinks toward '0'.

  17. final def causes[R <: Has[Random] with Has[Sized], E](e: Gen[R, E], t: Gen[R, Throwable]): Gen[R, Cause[E]]

    Permalink

    A generator of Cause values

    A generator of Cause values

    Definition Classes
    GenZIO
  18. final def chained[R <: Has[Random] with Has[Sized], Env, E, A](gen: Gen[R, ZIO[Env, E, A]]): Gen[R, ZIO[Env, E, A]]

    Permalink

    A generator of effects that are the result of chaining the specified effect with itself a random number of times.

    A generator of effects that are the result of chaining the specified effect with itself a random number of times.

    Definition Classes
    GenZIO
  19. final def chainedN[R <: Has[Random], Env, E, A](n: Int)(zio: Gen[R, ZIO[Env, E, A]]): Gen[R, ZIO[Env, E, A]]

    Permalink

    A generator of effects that are the result of chaining the specified effect with itself a given number of times.

    A generator of effects that are the result of chaining the specified effect with itself a given number of times.

    Definition Classes
    GenZIO
  20. def char(min: Char, max: Char): Gen[Has[Random], Char]

    Permalink

    A generator of character values inside the specified range: [start, end].

    A generator of character values inside the specified range: [start, end]. The shrinker will shrink toward the lower end of the range ("smallest").

  21. val char: Gen[Has[Random], Char]

    Permalink

    A generator of characters.

    A generator of characters. Shrinks toward '0'.

  22. def chunkOf[R <: Has[Random] with Has[Sized], A](g: Gen[R, A]): Gen[R, Chunk[A]]

    Permalink

    A sized generator of chunks.

  23. def chunkOf1[R <: Has[Random] with Has[Sized], A](g: Gen[R, A]): Gen[R, NonEmptyChunk[A]]

    Permalink

    A sized generator of non-empty chunks.

  24. def chunkOfBounded[R <: Has[Random], A](min: Int, max: Int)(g: Gen[R, A]): Gen[R, Chunk[A]]

    Permalink

    A generator of chunks whose size falls within the specified bounds.

  25. def chunkOfN[R <: Has[Random], A](n: Int)(g: Gen[R, A]): Gen[R, Chunk[A]]

    Permalink

    A generator of chunks of the specified size.

  26. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. def concatAll[R, A](gens: ⇒ Iterable[Gen[R, A]]): Gen[R, A]

    Permalink

    Combines the specified deterministic generators to return a new deterministic generator that generates all of the values generated by the specified generators.

  28. final def concurrent[R, E, A](zio: ZIO[R, E, A]): Gen[Any, ZIO[R, E, A]]

    Permalink

    A generator of effects that are the result of applying concurrency combinators to the specified effect that are guaranteed not to change its value.

    A generator of effects that are the result of applying concurrency combinators to the specified effect that are guaranteed not to change its value.

    Definition Classes
    GenZIO
  29. def const[A](a: ⇒ A): Gen[Any, A]

    Permalink

    A constant generator of the specified value.

  30. def constSample[R, A](sample: ⇒ Sample[R, A]): Gen[R, A]

    Permalink

    A constant generator of the specified sample.

  31. def crossAll[R, A](gens: Iterable[Gen[R, A]]): Gen[R, List[A]]

    Permalink

    Composes the specified generators to create a cartesian product of elements with the specified function.

  32. final def dayOfWeek: Gen[Has[Random], DayOfWeek]

    Permalink

    A generator of java.time.DayOfWeek values.

    A generator of java.time.DayOfWeek values. Shrinks toward DayOfWeek.MONDAY.

    Definition Classes
    TimeVariants
  33. final def died[R](gen: Gen[R, Throwable]): Gen[R, UIO[Nothing]]

    Permalink

    A generator of effects that have died with a Throwable.

    A generator of effects that have died with a Throwable.

    Definition Classes
    GenZIO
  34. def double(min: Double, max: Double): Gen[Has[Random], Double]

    Permalink

    A generator of double values inside the specified range: [start, end].

    A generator of double values inside the specified range: [start, end]. The shrinker will shrink toward the lower end of the range ("smallest").

  35. val double: Gen[Has[Random], Double]

    Permalink

    A generator of doubles.

    A generator of doubles. Shrinks toward '0'.

  36. def either[R <: Has[Random], A, B](left: Gen[R, A], right: Gen[R, B]): Gen[R, Either[A, B]]

    Permalink
  37. def elements[A](as: A*): Gen[Has[Random], A]

    Permalink
  38. val empty: Gen[Any, Nothing]

    Permalink
  39. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  40. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  41. val exponential: Gen[Has[Random], Double]

    Permalink

    A generator of exponentially distributed doubles with mean 1.

    A generator of exponentially distributed doubles with mean 1. The shrinker will shrink toward 0.

  42. final def failures[R, E](gen: Gen[R, E]): Gen[R, IO[E, Nothing]]

    Permalink

    A generator of effects that have failed with an error.

    A generator of effects that have failed with an error.

    Definition Classes
    GenZIO
  43. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  44. final def finiteDuration(min: zio.Duration, max: zio.Duration): Gen[Has[Random], zio.Duration]

    Permalink

    A generator of finite zio.duration.Duration values inside the specified range: [min, max].

    A generator of finite zio.duration.Duration values inside the specified range: [min, max]. Shrinks toward min.

    Definition Classes
    TimeVariants
  45. final def finiteDuration: Gen[Has[Random], zio.Duration]

    Permalink

    A generator of finite zio.duration.Duration values.

    A generator of finite zio.duration.Duration values. Shrinks toward Duration.Zero.

    Definition Classes
    TimeVariants
  46. val float: Gen[Has[Random], Float]

    Permalink

    A generator of floats.

    A generator of floats. Shrinks toward '0'.

  47. def fromIterable[R, A](as: Iterable[A], shrinker: (A) ⇒ ZStream[R, Nothing, A] = defaultShrinker): Gen[R, A]

    Permalink

    Constructs a deterministic generator that only generates the specified fixed values.

  48. final def fromRandom[A](f: (Random) ⇒ UIO[A]): Gen[Has[Random], A]

    Permalink

    Constructs a generator from a function that uses randomness.

    Constructs a generator from a function that uses randomness. The returned generator will not have any shrinking.

  49. final def fromRandomSample[R <: Has[Random], A](f: (Random) ⇒ UIO[Sample[R, A]]): Gen[R, A]

    Permalink

    Constructs a generator from a function that uses randomness to produce a sample.

  50. def fromZIO[R, A](effect: URIO[R, A]): Gen[R, A]

    Permalink

    Constructs a generator from an effect that constructs a value.

  51. def fromZIOSample[R, A](effect: ZIO[R, Nothing, Sample[R, A]]): Gen[R, A]

    Permalink

    Constructs a generator from an effect that constructs a sample.

  52. final def function[R, A, B](gen: Gen[R, B]): Gen[R, (A) ⇒ B]

    Permalink

    Constructs a generator of functions from A to B given a generator of B values.

    Constructs a generator of functions from A to B given a generator of B values. Two A values will be considered to be equal, and thus will be guaranteed to generate the same B value, if they have the same hashCode.

    Definition Classes
    FunctionVariants
  53. final def function2[R, A, B, C](gen: Gen[R, C]): Gen[R, (A, B) ⇒ C]

    Permalink

    A version of function that generates functions that accept two parameters.

    A version of function that generates functions that accept two parameters.

    Definition Classes
    FunctionVariants
  54. final def function3[R, A, B, C, D](gen: Gen[R, D]): Gen[R, (A, B, C) ⇒ D]

    Permalink

    A version of function that generates functions that accept three parameters.

    A version of function that generates functions that accept three parameters.

    Definition Classes
    FunctionVariants
  55. final def function4[R, A, B, C, D, E](gen: Gen[R, E]): Gen[R, (A, B, C, D) ⇒ E]

    Permalink

    A version of function that generates functions that accept four parameters.

    A version of function that generates functions that accept four parameters.

    Definition Classes
    FunctionVariants
  56. final def functionWith[R, A, B](gen: Gen[R, B])(hash: (A) ⇒ Int): Gen[R, (A) ⇒ B]

    Permalink

    Constructs a generator of functions from A to B given a generator of B values and a hashing function for A values.

    Constructs a generator of functions from A to B given a generator of B values and a hashing function for A values. Two A values will be considered to be equal, and thus will be guaranteed to generate the same B value, if they have have the same hash. This is useful when A does not implement hashCode in a way that is consistent with equality.

    Definition Classes
    FunctionVariants
  57. final def functionWith2[R, A, B, C](gen: Gen[R, C])(hash: (A, B) ⇒ Int): Gen[R, (A, B) ⇒ C]

    Permalink

    A version of functionWith that generates functions that accept two parameters.

    A version of functionWith that generates functions that accept two parameters.

    Definition Classes
    FunctionVariants
  58. final def functionWith3[R, A, B, C, D](gen: Gen[R, D])(hash: (A, B, C) ⇒ Int): Gen[R, (A, B, C) ⇒ D]

    Permalink

    A version of functionWith that generates functions that accept three parameters.

    A version of functionWith that generates functions that accept three parameters.

    Definition Classes
    FunctionVariants
  59. final def functionWith4[R, A, B, C, D, E](gen: Gen[R, E])(hash: (A, B, C, D) ⇒ Int): Gen[R, (A, B, C, D) ⇒ E]

    Permalink

    A version of functionWith that generates functions that accept four parameters.

    A version of functionWith that generates functions that accept four parameters.

    Definition Classes
    FunctionVariants
  60. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  61. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  62. val hexChar: Gen[Has[Random], Char]

    Permalink

    A generator of hex chars(0-9,a-f,A-F).

  63. val hexCharLower: Gen[Has[Random], Char]

    Permalink

    A generator of lower hex chars(0-9, a-f).

  64. val hexCharUpper: Gen[Has[Random], Char]

    Permalink

    A generator of upper hex chars(0-9, A-F).

  65. final def instant(min: Instant, max: Instant): Gen[Has[Random], Instant]

    Permalink

    A generator of java.time.Instant values inside the specified range: [min, max].

    A generator of java.time.Instant values inside the specified range: [min, max]. Shrinks toward min.

    Definition Classes
    TimeVariants
  66. final def instant: Gen[Has[Random], Instant]

    Permalink

    A generator of java.time.Instant values.

    A generator of java.time.Instant values. Shrinks toward Instant.MIN.

    Definition Classes
    TimeVariants
  67. def int(min: Int, max: Int): Gen[Has[Random], Int]

    Permalink

    A generator of integers inside the specified range: [start, end].

    A generator of integers inside the specified range: [start, end]. The shrinker will shrink toward the lower end of the range ("smallest").

  68. val int: Gen[Has[Random], Int]

    Permalink

    A generator of integers.

    A generator of integers. Shrinks toward '0'.

  69. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  70. val iso_8859_1: Gen[Has[Random] with Has[Sized], String]

    Permalink

    A generator of strings that can be encoded in the ISO-8859-1 character set.

  71. def large[R <: Has[Random] with Has[Sized], A](f: (Int) ⇒ Gen[R, A], min: Int = 0): Gen[R, A]

    Permalink

    A sized generator that uses a uniform distribution of size values.

    A sized generator that uses a uniform distribution of size values. A large number of larger sizes will be generated.

  72. def listOf[R <: Has[Random] with Has[Sized], A](g: Gen[R, A]): Gen[R, List[A]]

    Permalink
  73. def listOf1[R <: Has[Random] with Has[Sized], A](g: Gen[R, A]): Gen[R, ::[A]]

    Permalink
  74. def listOfBounded[R <: Has[Random], A](min: Int, max: Int)(g: Gen[R, A]): Gen[R, List[A]]

    Permalink

    A generator of lists whose size falls within the specified bounds.

  75. def listOfN[R <: Has[Random], A](n: Int)(g: Gen[R, A]): Gen[R, List[A]]

    Permalink
  76. final def localDate: Gen[Has[Random], LocalDate]

    Permalink

    A generator of java.time.LocalDate values.

    A generator of java.time.LocalDate values. Shrinks toward LocalDate.MIN.

    Definition Classes
    TimeVariants
  77. final def localDateTime(min: LocalDateTime, max: LocalDateTime): Gen[Has[Random], LocalDateTime]

    Permalink

    A generator of java.time.LocalDateTime values inside the specified range: [min, max].

    A generator of java.time.LocalDateTime values inside the specified range: [min, max]. Shrinks toward min.

    Definition Classes
    TimeVariants
  78. final def localDateTime: Gen[Has[Random], LocalDateTime]

    Permalink

    A generator of java.time.LocalDateTime values.

    A generator of java.time.LocalDateTime values. Shrinks toward LocalDateTime.MIN.

    Definition Classes
    TimeVariants
  79. final def localTime: Gen[Has[Random], LocalTime]

    Permalink

    A generator of java.time.LocalTime values.

    A generator of java.time.LocalTime values. Shrinks toward LocalTime.MIN.

    Definition Classes
    TimeVariants
  80. def long(min: Long, max: Long): Gen[Has[Random], Long]

    Permalink

    A generator of long values in the specified range: [start, end].

    A generator of long values in the specified range: [start, end]. The shrinker will shrink toward the lower end of the range ("smallest").

  81. val long: Gen[Has[Random], Long]

    Permalink

    A generator of longs.

    A generator of longs. Shrinks toward '0'.

  82. def mapOf[R <: Has[Random] with Has[Sized], A, B](key: Gen[R, A], value: Gen[R, B]): Gen[R, Map[A, B]]

    Permalink

    A sized generator of maps.

  83. def mapOf1[R <: Has[Random] with Has[Sized], A, B](key: Gen[R, A], value: Gen[R, B]): Gen[R, Map[A, B]]

    Permalink

    A sized generator of non-empty maps.

  84. def mapOfBounded[R <: Has[Random], A, B](min: Int, max: Int)(key: Gen[R, A], value: Gen[R, B]): Gen[R, Map[A, B]]

    Permalink

    A generator of maps whose size falls within the specified bounds.

  85. def mapOfN[R <: Has[Random], A, B](n: Int)(key: Gen[R, A], value: Gen[R, B]): Gen[R, Map[A, B]]

    Permalink

    A generator of maps of the specified size.

  86. def medium[R <: Has[Random] with Has[Sized], A](f: (Int) ⇒ Gen[R, A], min: Int = 0): Gen[R, A]

    Permalink

    A sized generator that uses an exponential distribution of size values.

    A sized generator that uses an exponential distribution of size values. The majority of sizes will be towards the lower end of the range but some larger sizes will be generated as well.

  87. final def month: Gen[Has[Random], Month]

    Permalink

    A generator of java.time.Month values.

    A generator of java.time.Month values. Shrinks toward Month.JANUARY.

    Definition Classes
    TimeVariants
  88. final def monthDay: Gen[Has[Random], MonthDay]

    Permalink

    A generator of java.time.MonthDay values.

    A generator of java.time.MonthDay values. Shrinks toward MonthDay.of(Month.JANUARY, 1).

    Definition Classes
    TimeVariants
  89. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  90. val none: Gen[Any, Option[Nothing]]

    Permalink

    A constant generator of the empty value.

  91. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  93. val numericChar: Gen[Has[Random], Char]

    Permalink

    A generator of numeric characters.

    A generator of numeric characters. Shrinks toward '0'.

  94. final def offsetDateTime(min: OffsetDateTime, max: OffsetDateTime): Gen[Has[Random], OffsetDateTime]

    Permalink

    A generator of java.time.OffsetDateTime values inside the specified range: [min, max].

    A generator of java.time.OffsetDateTime values inside the specified range: [min, max]. Shrinks toward min.

    Definition Classes
    TimeVariants
  95. final def offsetDateTime: Gen[Has[Random], OffsetDateTime]

    Permalink

    A generator of java.time.OffsetDateTime values.

    A generator of java.time.OffsetDateTime values. Shrinks toward OffsetDateTime.MIN.

    Definition Classes
    TimeVariants
  96. final def offsetTime: Gen[Has[Random], OffsetTime]

    Permalink

    A generator of java.time.OffsetTime values.

    A generator of java.time.OffsetTime values. Shrinks torward OffsetTime.MIN.

    Definition Classes
    TimeVariants
  97. def oneOf[R <: Has[Random], A](as: Gen[R, A]*): Gen[R, A]

    Permalink
  98. def option[R <: Has[Random], A](gen: Gen[R, A]): Gen[R, Option[A]]

    Permalink

    A generator of optional values.

    A generator of optional values. Shrinks toward None.

  99. final def parallel[R, E, A](zio: ZIO[R, E, A]): Gen[Any, ZIO[R, E, A]]

    Permalink

    A generator of effects that are the result of applying parallelism combinators to the specified effect that are guaranteed not to change its value.

    A generator of effects that are the result of applying parallelism combinators to the specified effect that are guaranteed not to change its value.

    Definition Classes
    GenZIO
  100. def partialFunction[R <: Has[Random], A, B](gen: Gen[R, B]): Gen[R, PartialFunction[A, B]]

    Permalink

    Constructs a generator of partial functions from A to B given a generator of B values.

    Constructs a generator of partial functions from A to B given a generator of B values. Two A values will be considered to be equal, and thus will be guaranteed to generate the same B value or both be outside the partial function's domain, if they have the same hashCode.

  101. def partialFunctionWith[R <: Has[Random], A, B](gen: Gen[R, B])(hash: (A) ⇒ Int): Gen[R, PartialFunction[A, B]]

    Permalink

    Constructs a generator of partial functions from A to B given a generator of B values and a hashing function for A values.

    Constructs a generator of partial functions from A to B given a generator of B values and a hashing function for A values. Two A values will be considered to be equal, and thus will be guaranteed to generate the same B value or both be outside the partial function's domain, if they have have the same hash. This is useful when A does not implement hashCode in a way that is consistent with equality.

  102. final def period: Gen[Has[Random], Period]

    Permalink

    A generator of java.time.Period values.

    A generator of java.time.Period values. Shrinks toward Period.ZERO.

    Definition Classes
    TimeVariants
  103. val printableChar: Gen[Has[Random], Char]

    Permalink

    A generator of printable characters.

    A generator of printable characters. Shrinks toward '!'.

  104. def setOf[R <: Has[Random] with Has[Sized], A](gen: Gen[R, A]): Gen[R, Set[A]]

    Permalink

    A sized generator of sets.

  105. def setOf1[R <: Has[Random] with Has[Sized], A](gen: Gen[R, A]): Gen[R, Set[A]]

    Permalink

    A sized generator of non-empty sets.

  106. def setOfBounded[R <: Has[Random], A](min: Int, max: Int)(g: Gen[R, A]): Gen[R, Set[A]]

    Permalink

    A generator of sets whose size falls within the specified bounds.

  107. def setOfN[R <: Has[Random], A](n: Int)(gen: Gen[R, A]): Gen[R, Set[A]]

    Permalink

    A generator of sets of the specified size.

  108. def short(min: Short, max: Short): Gen[Has[Random], Short]

    Permalink

    A generator of short values inside the specified range: [start, end].

    A generator of short values inside the specified range: [start, end]. The shrinker will shrink toward the lower end of the range ("smallest").

  109. val short: Gen[Has[Random], Short]

    Permalink

    A generator of shorts.

    A generator of shorts. Shrinks toward '0'.

  110. def size: Gen[Has[Sized], Int]

    Permalink
  111. def sized[R <: Has[Sized], A](f: (Int) ⇒ Gen[R, A]): Gen[R, A]

    Permalink

    A sized generator, whose size falls within the specified bounds.

  112. def small[R <: Has[Random] with Has[Sized], A](f: (Int) ⇒ Gen[R, A], min: Int = 0): Gen[R, A]

    Permalink

    A sized generator that uses an exponential distribution of size values.

    A sized generator that uses an exponential distribution of size values. The values generated will be strongly concentrated towards the lower end of the range but a few larger values will still be generated.

  113. def some[R, A](gen: Gen[R, A]): Gen[R, Option[A]]

    Permalink
  114. def string[R <: Has[Random] with Has[Sized]](char: Gen[R, Char]): Gen[R, String]

    Permalink
  115. def string: Gen[Has[Random] with Has[Sized], String]

    Permalink

    A generator of strings.

    A generator of strings. Shrinks towards the empty string.

  116. def string1[R <: Has[Random] with Has[Sized]](char: Gen[R, Char]): Gen[R, String]

    Permalink
  117. def stringBounded[R <: Has[Random]](min: Int, max: Int)(g: Gen[R, Char]): Gen[R, String]

    Permalink

    A generator of strings whose size falls within the specified bounds.

  118. def stringN[R <: Has[Random]](n: Int)(char: Gen[R, Char]): Gen[R, String]

    Permalink
  119. final def successes[R, A](gen: Gen[R, A]): Gen[R, UIO[A]]

    Permalink

    A generator of successful effects.

    A generator of successful effects.

    Definition Classes
    GenZIO
  120. def suspend[R, A](gen: ⇒ Gen[R, A]): Gen[R, A]

    Permalink

    Lazily constructs a generator.

    Lazily constructs a generator. This is useful to avoid infinite recursion when creating generators that refer to themselves.

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

    Permalink
    Definition Classes
    AnyRef
  122. val throwable: Gen[Has[Random], Throwable]

    Permalink

    A generator of throwables.

  123. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  124. def unfoldGen[R <: Has[Random] with Has[Sized], S, A](s: S)(f: (S) ⇒ Gen[R, (S, A)]): Gen[R, List[A]]

    Permalink

    A sized generator of collections, where each collection is generated by repeatedly applying a function to an initial state.

  125. def unfoldGenN[R, S, A](n: Int)(s: S)(f: (S) ⇒ Gen[R, (S, A)]): Gen[R, List[A]]

    Permalink

    A generator of collections of up to the specified size, where each collection is generated by repeatedly applying a function to an initial state.

  126. val unicodeChar: Gen[Has[Random], Char]

    Permalink

    A generator of Unicode characters.

    A generator of Unicode characters. Shrinks toward '0'.

  127. def uniform: Gen[Has[Random], Double]

    Permalink

    A generator of uniformly distributed doubles between [0, 1].

    A generator of uniformly distributed doubles between [0, 1]. The shrinker will shrink toward 0.

  128. val unit: Gen[Any, Unit]

    Permalink

    A constant generator of the unit value.

  129. val uuid: Gen[Has[Random], UUID]

    Permalink

    A generator of universally unique identifiers.

    A generator of universally unique identifiers. The returned generator will not have any shrinking.

  130. def vectorOf[R <: Has[Random] with Has[Sized], A](g: Gen[R, A]): Gen[R, Vector[A]]

    Permalink
  131. def vectorOf1[R <: Has[Random] with Has[Sized], A](g: Gen[R, A]): Gen[R, Vector[A]]

    Permalink
  132. def vectorOfBounded[R <: Has[Random], A](min: Int, max: Int)(g: Gen[R, A]): Gen[R, Vector[A]]

    Permalink

    A generator of vectors whose size falls within the specified bounds.

  133. def vectorOfN[R <: Has[Random], A](n: Int)(g: Gen[R, A]): Gen[R, Vector[A]]

    Permalink
  134. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  137. def weighted[R <: Has[Random], A](gs: (Gen[R, A], Double)*): Gen[R, A]

    Permalink

    A generator which chooses one of the given generators according to their weights.

    A generator which chooses one of the given generators according to their weights. For example, the following generator will generate 90% true and 10% false values.

    val trueFalse = Gen.weighted((Gen.const(true), 9), (Gen.const(false), 1))
  138. val whitespaceChars: Gen[Has[Random], Char]

    Permalink

    A generator of whitespace characters.

  139. final def year: Gen[Has[Random], Year]

    Permalink

    A generator of java.time.Year values.

    A generator of java.time.Year values. Shrinks toward Year.of(Year.MIN_VALUE).

    Definition Classes
    TimeVariants
  140. final def yearMonth: Gen[Has[Random], YearMonth]

    Permalink

    A generator of java.time.YearMonth values.

    A generator of java.time.YearMonth values. Shrinks toward YearMonth.of(Year.MIN_VALUE, Month.JANUARY).

    Definition Classes
    TimeVariants
  141. def zipAll[R, A](gens: Iterable[Gen[R, A]]): Gen[R, List[A]]

    Permalink

    Zips the specified generators together pairwise.

    Zips the specified generators together pairwise. The new generator will generate elements as long as any generator is generating elements, running the other generators multiple times if necessary.

  142. final def zoneId: Gen[Has[Random], ZoneId]

    Permalink

    A generator of java.time.ZoneId values.

    A generator of java.time.ZoneId values. Doesn't have any shrinking.

    Definition Classes
    TimeVariants
    Annotations
    @silent( "JavaConverters" )
  143. final def zoneOffset: Gen[Has[Random], ZoneOffset]

    Permalink

    A generator of java.time.ZoneOffset values.

    A generator of java.time.ZoneOffset values. Shrinks toward ZoneOffset.MIN.

    Definition Classes
    TimeVariants
  144. final def zonedDateTime: Gen[Has[Random], ZonedDateTime]

    Permalink

    A generator of java.time.ZonedDateTime values.

    A generator of java.time.ZonedDateTime values. Shrinks toward ZoneDateTime.of(LocalDateTime.MIN, zoneId).

    Definition Classes
    TimeVariants

Deprecated Value Members

  1. def anyASCIIChar: Gen[Has[Random], Char]

    Permalink

    A generator of US-ASCII characters.

    A generator of US-ASCII characters. Shrinks toward '0'.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use ASCIIChar

  2. def anyASCIIString: Gen[Has[Random] with Has[Sized], String]

    Permalink

    A generator US-ASCII strings.

    A generator US-ASCII strings. Shrinks towards the empty string.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use ASCIIString

  3. val anyByte: Gen[Has[Random], Byte]

    Permalink

    A generator of bytes.

    A generator of bytes. Shrinks toward '0'.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use byte

  4. val anyChar: Gen[Has[Random], Char]

    Permalink

    A generator of characters.

    A generator of characters. Shrinks toward '0'.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use char

  5. final def anyDayOfWeek: Gen[Has[Random], DayOfWeek]

    Permalink

    A generator of java.time.DayOfWeek values.

    A generator of java.time.DayOfWeek values. Shrinks toward DayOfWeek.MONDAY.

    Definition Classes
    TimeVariants
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use dayOfWeek

  6. val anyDouble: Gen[Has[Random], Double]

    Permalink

    A generator of doubles.

    A generator of doubles. Shrinks toward '0'.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use double

  7. final def anyFiniteDuration: Gen[Has[Random], zio.Duration]

    Permalink

    A generator of finite zio.duration.Duration values.

    A generator of finite zio.duration.Duration values. Shrinks toward Duration.Zero.

    Definition Classes
    TimeVariants
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use finiteDuration

  8. val anyFloat: Gen[Has[Random], Float]

    Permalink

    A generator of floats.

    A generator of floats. Shrinks toward '0'.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use float

  9. val anyHexChar: Gen[Has[Random], Char]

    Permalink

    A generator of hex chars(0-9,a-f,A-F).

    A generator of hex chars(0-9,a-f,A-F).

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use hexChar

  10. final def anyInstant: Gen[Has[Random], Instant]

    Permalink

    A generator of java.time.Instant values.

    A generator of java.time.Instant values. Shrinks toward Instant.MIN.

    Definition Classes
    TimeVariants
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use instant

  11. val anyInt: Gen[Has[Random], Int]

    Permalink

    A generator of integers.

    A generator of integers. Shrinks toward '0'.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use int

  12. final def anyLocalDate: Gen[Has[Random], LocalDate]

    Permalink

    A generator of java.time.LocalDate values.

    A generator of java.time.LocalDate values. Shrinks toward LocalDate.MIN.

    Definition Classes
    TimeVariants
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use localDate

  13. final def anyLocalDateTime: Gen[Has[Random], LocalDateTime]

    Permalink

    A generator of java.time.LocalDateTime values.

    A generator of java.time.LocalDateTime values. Shrinks toward LocalDateTime.MIN.

    Definition Classes
    TimeVariants
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use localDateTime

  14. final def anyLocalTime: Gen[Has[Random], LocalTime]

    Permalink

    A generator of java.time.LocalTime values.

    A generator of java.time.LocalTime values. Shrinks toward LocalTime.MIN.

    Definition Classes
    TimeVariants
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use localTime

  15. val anyLong: Gen[Has[Random], Long]

    Permalink

    A generator of longs.

    A generator of longs. Shrinks toward '0'.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use long

  16. val anyLowerHexChar: Gen[Has[Random], Char]

    Permalink

    A generator of lower hex chars(0-9, a-f).

    A generator of lower hex chars(0-9, a-f).

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use hexCharLower

  17. final def anyMonth: Gen[Has[Random], Month]

    Permalink

    A generator of java.time.Month values.

    A generator of java.time.Month values. Shrinks toward Month.JANUARY.

    Definition Classes
    TimeVariants
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use month

  18. final def anyMonthDay: Gen[Has[Random], MonthDay]

    Permalink

    A generator of java.time.MonthDay values.

    A generator of java.time.MonthDay values. Shrinks toward MonthDay.of(Month.JANUARY, 1).

    Definition Classes
    TimeVariants
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use monthDay

  19. final def anyOffsetDateTime: Gen[Has[Random], OffsetDateTime]

    Permalink

    A generator of java.time.OffsetDateTime values.

    A generator of java.time.OffsetDateTime values. Shrinks toward OffsetDateTime.MIN.

    Definition Classes
    TimeVariants
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use offsetDateTime

  20. final def anyOffsetTime: Gen[Has[Random], OffsetTime]

    Permalink

    A generator of java.time.OffsetTime values.

    A generator of java.time.OffsetTime values. Shrinks torward OffsetTime.MIN.

    Definition Classes
    TimeVariants
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use offsetTime

  21. final def anyPeriod: Gen[Has[Random], Period]

    Permalink

    A generator of java.time.Period values.

    A generator of java.time.Period values. Shrinks toward Period.ZERO.

    Definition Classes
    TimeVariants
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use period

  22. val anyShort: Gen[Has[Random], Short]

    Permalink

    A generator of shorts.

    A generator of shorts. Shrinks toward '0'.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use short

  23. def anyString: Gen[Has[Random] with Has[Sized], String]

    Permalink

    A generator of strings.

    A generator of strings. Shrinks towards the empty string.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use string

  24. val anyUUID: Gen[Has[Random], UUID]

    Permalink

    A generator of universally unique identifiers.

    A generator of universally unique identifiers. The returned generator will not have any shrinking.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use uuid

  25. val anyUnicodeChar: Gen[Has[Random], Char]

    Permalink

    A generator of Unicode characters.

    A generator of Unicode characters. Shrinks toward '0'.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use unicodeChar

  26. val anyUpperHexChar: Gen[Has[Random], Char]

    Permalink

    A generator of upper hex chars(0-9, A-F).

    A generator of upper hex chars(0-9, A-F).

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use hexCharUpper

  27. final def anyYear: Gen[Has[Random], Year]

    Permalink

    A generator of java.time.Year values.

    A generator of java.time.Year values. Shrinks toward Year.of(Year.MIN_VALUE).

    Definition Classes
    TimeVariants
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use year

  28. final def anyYearMonth: Gen[Has[Random], YearMonth]

    Permalink

    A generator of java.time.YearMonth values.

    A generator of java.time.YearMonth values. Shrinks toward YearMonth.of(Year.MIN_VALUE, Month.JANUARY).

    Definition Classes
    TimeVariants
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use yearMonth

  29. final def anyZoneId: Gen[Has[Random], ZoneId]

    Permalink

    A generator of java.time.ZoneId values.

    A generator of java.time.ZoneId values. Doesn't have any shrinking.

    Definition Classes
    TimeVariants
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use zoneId

  30. final def anyZoneOffset: Gen[Has[Random], ZoneOffset]

    Permalink

    A generator of java.time.ZoneOffset values.

    A generator of java.time.ZoneOffset values. Shrinks toward ZoneOffset.MIN.

    Definition Classes
    TimeVariants
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use zoneOffset

  31. final def anyZonedDateTime: Gen[Has[Random], ZonedDateTime]

    Permalink

    A generator of java.time.ZonedDateTime values.

    A generator of java.time.ZonedDateTime values. Shrinks toward ZoneDateTime.of(LocalDateTime.MIN, zoneId).

    Definition Classes
    TimeVariants
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use zonedDateTime

  32. def crossN[R, A, B, C, D, F](gen1: Gen[R, A], gen2: Gen[R, B], gen3: Gen[R, C], gen4: Gen[R, D])(f: (A, B, C, D) ⇒ F): Gen[R, F]

    Permalink

    Composes the specified generators to create a cartesian product of elements with the specified function.

    Composes the specified generators to create a cartesian product of elements with the specified function.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use cross

  33. def crossN[R, A, B, C, D](gen1: Gen[R, A], gen2: Gen[R, B], gen3: Gen[R, C])(f: (A, B, C) ⇒ D): Gen[R, D]

    Permalink

    Composes the specified generators to create a cartesian product of elements with the specified function.

    Composes the specified generators to create a cartesian product of elements with the specified function.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use cross

  34. def crossN[R, A, B, C](gen1: Gen[R, A], gen2: Gen[R, B])(f: (A, B) ⇒ C): Gen[R, C]

    Permalink

    Composes the specified generators to create a cartesian product of elements with the specified function.

    Composes the specified generators to create a cartesian product of elements with the specified function.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use cross

  35. def fromEffect[R, A](effect: URIO[R, A]): Gen[R, A]

    Permalink

    Constructs a generator from an effect that constructs a value.

    Constructs a generator from an effect that constructs a value.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use fromZIO

  36. def fromEffectSample[R, A](effect: ZIO[R, Nothing, Sample[R, A]]): Gen[R, A]

    Permalink

    Constructs a generator from an effect that constructs a sample.

    Constructs a generator from an effect that constructs a sample.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use fromZIOSample

  37. def zipN[R, A, B, C, D, F, G, H, I, J, K, L](gen1: Gen[R, A], gen2: Gen[R, B], gen3: Gen[R, C], gen4: Gen[R, D], gen5: Gen[R, F], gen6: Gen[R, G], gen7: Gen[R, H], gen8: Gen[R, I], gen9: Gen[R, J], gen10: Gen[R, K])(fn: (A, B, C, D, F, G, H, I, J, K) ⇒ L): Gen[R, L]

    Permalink

    Zips the specified generators together pairwise.

    Zips the specified generators together pairwise. The new generator will generate elements as long as any generator is generating elements, running the other generators multiple times if necessary.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use zip

  38. def zipN[R, A, B, C, D, F, G, H, I, J, K](gen1: Gen[R, A], gen2: Gen[R, B], gen3: Gen[R, C], gen4: Gen[R, D], gen5: Gen[R, F], gen6: Gen[R, G], gen7: Gen[R, H], gen8: Gen[R, I], gen9: Gen[R, J])(fn: (A, B, C, D, F, G, H, I, J) ⇒ K): Gen[R, K]

    Permalink

    Zips the specified generators together pairwise.

    Zips the specified generators together pairwise. The new generator will generate elements as long as any generator is generating elements, running the other generators multiple times if necessary.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use zip

  39. def zipN[R, A, B, C, D, F, G, H, I, J](gen1: Gen[R, A], gen2: Gen[R, B], gen3: Gen[R, C], gen4: Gen[R, D], gen5: Gen[R, F], gen6: Gen[R, G], gen7: Gen[R, H], gen8: Gen[R, I])(fn: (A, B, C, D, F, G, H, I) ⇒ J): Gen[R, J]

    Permalink

    Zips the specified generators together pairwise.

    Zips the specified generators together pairwise. The new generator will generate elements as long as any generator is generating elements, running the other generators multiple times if necessary.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use zip

  40. def zipN[R, A, B, C, D, F, G, H, I](gen1: Gen[R, A], gen2: Gen[R, B], gen3: Gen[R, C], gen4: Gen[R, D], gen5: Gen[R, F], gen6: Gen[R, G], gen7: Gen[R, H])(fn: (A, B, C, D, F, G, H) ⇒ I): Gen[R, I]

    Permalink

    Zips the specified generators together pairwise.

    Zips the specified generators together pairwise. The new generator will generate elements as long as any generator is generating elements, running the other generators multiple times if necessary.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use zip

  41. def zipN[R, A, B, C, D, F, G, H](gen1: Gen[R, A], gen2: Gen[R, B], gen3: Gen[R, C], gen4: Gen[R, D], gen5: Gen[R, F], gen6: Gen[R, G])(fn: (A, B, C, D, F, G) ⇒ H): Gen[R, H]

    Permalink

    Zips the specified generators together pairwise.

    Zips the specified generators together pairwise. The new generator will generate elements as long as any generator is generating elements, running the other generators multiple times if necessary.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use zip

  42. def zipN[R, A, B, C, D, F, G](gen1: Gen[R, A], gen2: Gen[R, B], gen3: Gen[R, C], gen4: Gen[R, D], gen5: Gen[R, F])(fn: (A, B, C, D, F) ⇒ G): Gen[R, G]

    Permalink

    Zips the specified generators together pairwise.

    Zips the specified generators together pairwise. The new generator will generate elements as long as any generator is generating elements, running the other generators multiple times if necessary.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use zip

  43. def zipN[R, A, B, C, D, F](gen1: Gen[R, A], gen2: Gen[R, B], gen3: Gen[R, C], gen4: Gen[R, D])(f: (A, B, C, D) ⇒ F): Gen[R, F]

    Permalink

    Zips the specified generators together pairwise.

    Zips the specified generators together pairwise. The new generator will generate elements as long as any generator is generating elements, running the other generators multiple times if necessary.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use zip

  44. def zipN[R, A, B, C, D](gen1: Gen[R, A], gen2: Gen[R, B], gen3: Gen[R, C])(f: (A, B, C) ⇒ D): Gen[R, D]

    Permalink

    Zips the specified generators together pairwise.

    Zips the specified generators together pairwise. The new generator will generate elements as long as any generator is generating elements, running the other generators multiple times if necessary.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use zip

  45. def zipN[R, A, B, C](gen1: Gen[R, A], gen2: Gen[R, B])(f: (A, B) ⇒ C): Gen[R, C]

    Permalink

    Zips the specified generators together pairwise.

    Zips the specified generators together pairwise. The new generator will generate elements as long as any generator is generating elements, running the other generators multiple times if necessary.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use zip

Inherited from Serializable

Inherited from Serializable

Inherited from TimeVariants

Inherited from FunctionVariants

Inherited from GenZIO

Inherited from AnyRef

Inherited from Any

Ungrouped