object Gen extends Serializable
- Alphabetic
- By Inheritance
- Gen
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def const[A](a: => A): Gen[Any, A]
A constant generator of the specified value.
- final def constSample[R, A](sample: => Sample[R, A]): Gen[R, A]
A constant generator of the specified sample.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def fromEffect[R, A](effect: ZIO[R, Nothing, A]): Gen[R, A]
Constructs a generator from an effect that constructs a value.
- final def fromEffectSample[R, A](effect: ZIO[R, Nothing, Sample[R, A]]): Gen[R, A]
Constructs a generator from an effect that constructs a sample.
- final def fromIterable[R, A](as: Iterable[A], shrinker: (A) => ZStream[R, Nothing, A] = (_: A) => ZStream.empty): Gen[R, A]
Constructs a deterministic generator that only generates the specified fixed values.
- final def fromRandom[A](f: (Service[Any]) => UIO[A]): Gen[Random, A]
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.
- final def fromRandomSample[R <: Random, A](f: (Service[Any]) => UIO[Sample[R, A]]): Gen[R, A]
Constructs a generator from a function that uses randomness to produce a sample.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def integral[A](range: Range)(implicit I: Integral[A]): Gen[Random, A]
A generator of integral values inside the specified range: [start, end).
A generator of integral values inside the specified range: [start, end). The shrinker will shrink toward the lower end of the range ("smallest").
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def sized[R <: Random, A](min: Int, max: Int)(f: (Int) => Gen[R, A]): Gen[R, A]
A sized generator, whose size falls within the specified bounds.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def uniform: Gen[Random, Double]
A generator of uniformly distributed doubles between [0, 1].
A generator of uniformly distributed doubles between [0, 1].
TODO: Make Shrinker go toward
0 - final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()