Packages

object Gen extends Serializable

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Gen
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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. final val alphaNumericChar: Gen[Random, Char]

    A generator of alphanumeric characters.

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

  5. final val anyByte: Gen[Random, Byte]

    A generator of bytes.

    A generator of bytes. Shrinks toward '0'.

  6. final val anyChar: Gen[Random, Char]

    A generator of characters.

    A generator of characters. Shrinks toward '0'.

  7. final val anyFloat: Gen[Random, Float]

    A generator of integers.

    A generator of integers. Shrinks toward '0'.

  8. final val anyInt: Gen[Random, Int]

    A generator of integers.

    A generator of integers. Shrinks toward '0'.

  9. final val anyLong: Gen[Random, Long]

    A generator of longs.

    A generator of longs. Shrinks toward '0'.

  10. final val anyShort: Gen[Random, Short]

    A generator of shorts.

    A generator of shorts. Shrinks toward '0'.

  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. final val boolean: Gen[Random, Boolean]

    A generator of booleans.

    A generator of booleans. Shrinks toward 'false'.

  13. final def byte(min: Byte, max: Byte): Gen[Random, Byte]

    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").

  14. final def char(min: Char, max: Char): Gen[Random, Char]

    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").

  15. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  16. final def const[A](a: ⇒ A): Gen[Any, A]

    A constant generator of the specified value.

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

    A constant generator of the specified sample.

  18. final def double(min: Double, max: Double): Gen[Random, Double]

    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").

  19. final def either[R <: Random, A, B](left: Gen[R, A], right: Gen[R, B]): Gen[R, Either[A, B]]
  20. final def elements[A](as: A*): Gen[Random, A]
  21. final val empty: Gen[Any, Nothing]
  22. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  24. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. final def fromEffect[R, A](effect: ZIO[R, Nothing, A]): Gen[R, A]

    Constructs a generator from an effect that constructs a value.

  26. 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.

  27. 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.

  28. 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.

  29. 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.

  30. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  31. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  32. final def int(min: Int, max: Int): Gen[Random, Int]

    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").

  33. final def integral[A](min: A, max: A)(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").

  34. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  35. final def listOf[R <: Random with Sized, A](g: Gen[R, A]): Gen[R, List[A]]
  36. final def listOf1[R <: Random with Sized, A](g: Gen[R, A]): Gen[R, List[A]]
  37. final def listOfN[R <: Random, A](n: Int)(g: Gen[R, A]): Gen[R, List[A]]
  38. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  39. final val none: Gen[Any, Option[Nothing]]

    A constant generator of the empty value.

  40. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  41. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  42. final def oneOf[R <: Random, A](as: Gen[R, A]*): Gen[R, A]
  43. final def option[R <: Random, A](gen: Gen[R, A]): Gen[R, Option[A]]

    A generator of optional values.

    A generator of optional values. Shrinks toward None.

  44. final val printableChar: Gen[Random, Char]

    A generator of printable characters.

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

  45. final def short(min: Short, max: Short): Gen[Random, Short]

    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").

  46. final val size: Gen[Sized, Int]
  47. final def sized[R <: Sized, A](f: (Int) ⇒ Gen[R, A]): Gen[R, A]

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

  48. final def some[R, A](gen: Gen[R, A]): Gen[R, Option[A]]
  49. final def string[R <: Random with Sized](char: Gen[R, Char]): Gen[R, String]
  50. final def string1[R <: Random with Sized](char: Gen[R, Char]): Gen[R, String]
  51. final def stringN[R <: Random](n: Int)(char: Gen[R, Char]): Gen[R, String]
  52. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  53. def toString(): String
    Definition Classes
    AnyRef → Any
  54. final def uniform: Gen[Random, Double]

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

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

  55. final val unit: Gen[Any, Unit]

    A constant generator of the unit value.

  56. final def vectorOf[R <: Random with Sized, A](g: Gen[R, A]): Gen[R, Vector[A]]
  57. final def vectorOf1[R <: Random with Sized, A](g: Gen[R, A]): Gen[R, Vector[A]]
  58. final def vectorOfN[R <: Random, A](n: Int)(g: Gen[R, A]): Gen[R, Vector[A]]
  59. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  60. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  61. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  62. final def weighted[R <: Random, A](gs: (Gen[R, A], Double)*): Gen[R, A]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped