Gen

object Gen
Companion:
class
Source:
Gen.scala
class Object
trait Matchable
class Any
Gen.type

Type members

Classlikes

object Choose

Provides implicit org.scalacheck.Gen.Choose instances

Provides implicit org.scalacheck.Gen.Choose instances

Companion:
class
Source:
Gen.scala
trait Choose[T] extends Serializable

A wrapper type for range types

A wrapper type for range types

Companion:
object
Source:
Gen.scala
sealed abstract class Parameters extends Serializable

Generator parameters, used by org.scalacheck.Gen.apply

Generator parameters, used by org.scalacheck.Gen.apply

Companion:
object
Source:
Gen.scala
object Parameters

Provides methods for creating org.scalacheck.Gen.Parameters values

Provides methods for creating org.scalacheck.Gen.Parameters values

Companion:
class
Source:
Gen.scala
class RetrievalError extends RuntimeException
Source:
Gen.scala

Value members

Concrete methods

def atLeastOne[T](l: Iterable[T]): Gen[Seq[T]]

A generator that picks at least one element from a list

A generator that picks at least one element from a list

Source:
Gen.scala
def atLeastOne[T](g1: Gen[T], g2: Gen[T], gs: Gen[T]*): Gen[Seq[T]]

A generator that picks at least one element from a list

A generator that picks at least one element from a list

Source:
Gen.scala
def binomial(test: Gen[Boolean], trials: Int): Gen[Int]

Generates Int values according to the given binomial distribution, specified by the number of trials to conduct, and the probability of a true test.

Generates Int values according to the given binomial distribution, specified by the number of trials to conduct, and the probability of a true test.

This distribution counts the number of trials which were successful according to a given test probability.

The range of values is [0, trials].

Source:
Gen.scala
def buildableOf[C, T](g: Gen[T])(implicit evb: Buildable[T, C], evt: C => Iterable[T]): Gen[C]

Generates a container of any Traversable type for which there exists an implicit org.scalacheck.util.Buildable instance. The elements in the container will be generated by the given generator. The size of the container is bounded by the size parameter used when generating values.

Generates a container of any Traversable type for which there exists an implicit org.scalacheck.util.Buildable instance. The elements in the container will be generated by the given generator. The size of the container is bounded by the size parameter used when generating values.

Source:
Gen.scala
def buildableOfCollCond[C <: Iterable[T], T](cond: C => Boolean, g: Gen[C], failureHint: Int)(implicit evb: Buildable[T, C], evt: C => Iterable[T]): Gen[C]

Generates a container of any Traversable type for which there exists an implicit org.scalacheck.util.Buildable instance. The elements in the container will be generated by the given generator. The generated container will continuously frow in size until the fillCondition returns true. Unlike buildableOfCond, this version of the method lets you specify another collection Gen which helps in speeding up the process of growing the collection. If the given generator fails generating a value, the complete container generator will also fail.

Generates a container of any Traversable type for which there exists an implicit org.scalacheck.util.Buildable instance. The elements in the container will be generated by the given generator. The generated container will continuously frow in size until the fillCondition returns true. Unlike buildableOfCond, this version of the method lets you specify another collection Gen which helps in speeding up the process of growing the collection. If the given generator fails generating a value, the complete container generator will also fail.

Source:
Gen.scala
def buildableOfCond[C, T](fillCondition: C => Boolean, g: Gen[T], failureHint: Int)(implicit evb: Buildable[T, C], evt: C => Iterable[T]): Gen[C]

Generates a container of any Traversable type for which there exists an implicit org.scalacheck.util.Buildable instance. The elements in the container will be generated by the given generator. The generated container will continuously grow in size until the fillCondition returns true. If the given generator fails generating a value, the complete container generator will also fail.

Generates a container of any Traversable type for which there exists an implicit org.scalacheck.util.Buildable instance. The elements in the container will be generated by the given generator. The generated container will continuously grow in size until the fillCondition returns true. If the given generator fails generating a value, the complete container generator will also fail.

Source:
Gen.scala
def buildableOfN[C, T](n: Int, g: Gen[T])(implicit evb: Buildable[T, C], evt: C => Iterable[T]): Gen[C]

Generates a container of any Traversable type for which there exists an implicit org.scalacheck.util.Buildable instance. The elements in the container will be generated by the given generator. The size of the generated container is limited by n. Depending on what kind of container that is generated, the resulting container may contain fewer elements than n, but not more. If the given generator fails generating a value, the complete container generator will also fail.

Generates a container of any Traversable type for which there exists an implicit org.scalacheck.util.Buildable instance. The elements in the container will be generated by the given generator. The size of the generated container is limited by n. Depending on what kind of container that is generated, the resulting container may contain fewer elements than n, but not more. If the given generator fails generating a value, the complete container generator will also fail.

Source:
Gen.scala
def choose[T](min: T, max: T)(implicit c: Choose[T]): Gen[T]

A generator that generates a random value in the given (inclusive) range. If the range is invalid, an IllegalBoundsError exception will be thrown.

A generator that generates a random value in the given (inclusive) range. If the range is invalid, an IllegalBoundsError exception will be thrown.

Source:
Gen.scala
def chooseNum[T](minT: T, maxT: T, specials: T*)(implicit num: Numeric[T], c: Choose[T]): Gen[T]

Generates numbers within the given inclusive range, with extra weight on zero, +/- unity, both extremities, and any special numbers provided. The special numbers must lie within the given range, otherwise they won't be included.

Generates numbers within the given inclusive range, with extra weight on zero, +/- unity, both extremities, and any special numbers provided. The special numbers must lie within the given range, otherwise they won't be included.

Source:
Gen.scala
def containerOf[C[_], T](g: Gen[T])(implicit evb: Buildable[T, C[T]], evt: C[T] => Iterable[T]): Gen[C[T]]

A convenience method for calling buildableOf[C[T],T](g).

A convenience method for calling buildableOf[C[T],T](g).

Source:
Gen.scala
def containerOfN[C[_], T](n: Int, g: Gen[T])(implicit evb: Buildable[T, C[T]], evt: C[T] => Iterable[T]): Gen[C[T]]

A convenience method for calling buildableOfN[C[T],T](n,g).

A convenience method for calling buildableOfN[C[T],T](n,g).

Source:
Gen.scala
def delay[T](g: => Gen[T]): Gen[T]

Wraps a generator for later evaluation. The given parameter is evaluated each time the wrapper generator is evaluated.

Wraps a generator for later evaluation. The given parameter is evaluated each time the wrapper generator is evaluated.

Source:
Gen.scala
def either[T, U](gt: Gen[T], gu: Gen[U]): Gen[Either[T, U]]

Generates a Left of T or a Right of U with equal probability.

Generates a Left of T or a Right of U with equal probability.

Source:
Gen.scala

Generates Double values according to the given exponential distribution, specified by its rate parameter.

Generates Double values according to the given exponential distribution, specified by its rate parameter.

The mean and standard deviation are both equal to 1/rate.

The range of values is [0, ∞).

Source:
Gen.scala
def fail[T]: Gen[T]

A generator that never generates a value

A generator that never generates a value

Source:
Gen.scala
def frequency[T](gs: (Int, Gen[T])*): Gen[T]

Chooses one of the given generators with a weighted random distribution

Chooses one of the given generators with a weighted random distribution

Source:
Gen.scala
def function0[A](g: Gen[A]): Gen[() => A]

Creates a Function0 generator.

Creates a Function0 generator.

Source:
Gen.scala
def gaussian(mean: Double, stdDev: Double): Gen[Double]

Generates Double values according to the given gaussian distribution, specified by its mean and standard deviation.

Generates Double values according to the given gaussian distribution, specified by its mean and standard deviation.

Gaussian distributions are also called normal distributions.

The range of values is theoretically (-∞, ∞) but 99.7% of all values will be contained within (mean ± 3 * stdDev).

Source:
Gen.scala
def geometric(mean: Double): Gen[Int]

Generates Int values according to the given geometric distribution, specified by its mean.

Generates Int values according to the given geometric distribution, specified by its mean.

This distribution represents the expected number of failures before a successful test, where the probability of a successful test is p = 1 / (mean + 1).

The ideal range of values is [0, ∞), although the largest value that can be produced here is 2147483647 (Int.MaxValue).

Source:
Gen.scala
def infiniteStream[T](g: => Gen[T]): Gen[Stream[T]]

Generates an infinite stream.

Generates an infinite stream.

Failures in the underlying generator may terminate the stream. Otherwise it will continue forever.

Source:
Gen.scala
def listOf[T](g: => Gen[T]): Gen[List[T]]

Generates a list of random length. The maximum length depends on the size parameter. This method is equal to calling containerOf[List,T](g).

Generates a list of random length. The maximum length depends on the size parameter. This method is equal to calling containerOf[List,T](g).

Source:
Gen.scala
def listOfCond[T](finishCondition: List[T] => Boolean, g: => Gen[T], failureHint: Int): Gen[List[T]]

Generates a list that continuously grows in size until finishCondition returns true.

Generates a list that continuously grows in size until finishCondition returns true.

Source:
Gen.scala
def listOfFillCond[T](finishCondition: List[T] => Boolean, g: => Gen[List[T]], failureHint: Int): Gen[List[T]]

Generates a list that continuously grows in size until finishCondition returns true. Unlike listOfCond it accepts a list generator argument which lets you generate larger lists quicker

Generates a list that continuously grows in size until finishCondition returns true. Unlike listOfCond it accepts a list generator argument which lets you generate larger lists quicker

Source:
Gen.scala
def listOfN[T](n: Int, g: Gen[T]): Gen[List[T]]

Generates a list with at most the given number of elements. This method is equal to calling containerOfN[List,T](n,g).

Generates a list with at most the given number of elements. This method is equal to calling containerOfN[List,T](n,g).

Source:
Gen.scala
def lzy[T](g: => Gen[T]): Gen[T]

Wraps a generator lazily. The given parameter is only evaluated once, and not until the wrapper generator is evaluated.

Wraps a generator lazily. The given parameter is only evaluated once, and not until the wrapper generator is evaluated.

Source:
Gen.scala
def mapOf[T, U](g: => Gen[(T, U)]): Gen[Map[T, U]]

Generates a map of random length. The maximum length depends on the size parameter. This method is equal to calling containerOfMap,(T,U).

Generates a map of random length. The maximum length depends on the size parameter. This method is equal to calling containerOfMap,(T,U).

Source:
Gen.scala
def mapOfCond[T, U](cond: Map[T, U] => Boolean, g: => Gen[(T, U)], failureHint: Int): Gen[Map[T, U]]

Generates a map that continuously grows in size until finishCondition returns true.

Generates a map that continuously grows in size until finishCondition returns true.

Source:
Gen.scala
def mapOfFillCond[T, U](cond: Map[T, U] => Boolean, g: => Gen[Map[T, U]], failureHint: Int): Gen[Map[T, U]]

Generates a map that continuously grows in size until finishCondition returns true. Unlike mapOfCond it accepts a map generator argument which lets you generate larger maps quicker

Generates a map that continuously grows in size until finishCondition returns true. Unlike mapOfCond it accepts a map generator argument which lets you generate larger maps quicker

Source:
Gen.scala
def mapOfN[T, U](n: Int, g: Gen[(T, U)]): Gen[Map[T, U]]

Generates a map with at most the given number of elements. This method is equal to calling containerOfNMap,(T,U).

Generates a map with at most the given number of elements. This method is equal to calling containerOfNMap,(T,U).

Source:
Gen.scala
def negNum[T](implicit num: Numeric[T], c: Choose[T]): Gen[T]

Generates negative numbers of uniform distribution, with an lower bound of the negated generation size parameter.

Generates negative numbers of uniform distribution, with an lower bound of the negated generation size parameter.

Source:
Gen.scala
def nonEmptyBuildableOf[C, T](g: Gen[T])(implicit evb: Buildable[T, C], evt: C => Iterable[T]): Gen[C]

Generates a non-empty container of any Traversable type for which there exists an implicit org.scalacheck.util.Buildable instance. The elements in the container will be generated by the given generator. The size of the container is bounded by the size parameter used when generating values.

Generates a non-empty container of any Traversable type for which there exists an implicit org.scalacheck.util.Buildable instance. The elements in the container will be generated by the given generator. The size of the container is bounded by the size parameter used when generating values.

Source:
Gen.scala
def nonEmptyContainerOf[C[_], T](g: Gen[T])(implicit evb: Buildable[T, C[T]], evt: C[T] => Iterable[T]): Gen[C[T]]

A convenience method for calling nonEmptyBuildableOf[C[T],T](g).

A convenience method for calling nonEmptyBuildableOf[C[T],T](g).

Source:
Gen.scala
def nonEmptyListOf[T](g: => Gen[T]): Gen[List[T]]

Generates a non-empty list of random length. The maximum length depends on the size parameter. This method is equal to calling nonEmptyContainerOf[List,T](g).

Generates a non-empty list of random length. The maximum length depends on the size parameter. This method is equal to calling nonEmptyContainerOf[List,T](g).

Source:
Gen.scala
def nonEmptyMap[T, U](g: => Gen[(T, U)]): Gen[Map[T, U]]

Generates a non-empty map of random length. The maximum length depends on the size parameter. This method is equal to calling nonEmptyContainerOfMap,(T,U).

Generates a non-empty map of random length. The maximum length depends on the size parameter. This method is equal to calling nonEmptyContainerOfMap,(T,U).

Source:
Gen.scala
def oneOf[T](xs: Iterable[T]): Gen[T]

Picks a random value from a list.

Picks a random value from a list.

Source:
Gen.scala
def oneOf[T](xs: Seq[T]): Gen[T]

Picks a random value from a list.

Picks a random value from a list.

Todo:

Remove this overloaded method in the next major release. See #438.

Source:
Gen.scala
def oneOf[T](t0: T, t1: T, tn: T*): Gen[T]

Picks a random value from a list

Picks a random value from a list

Source:
Gen.scala
def oneOf[T](g0: Gen[T], g1: Gen[T], gn: Gen[T]*): Gen[T]

Picks a random generator from a list

Picks a random generator from a list

Source:
Gen.scala
def option[T](g: Gen[T]): Gen[Option[T]]

Makes a generator result optional. Either Some(T) or None will be provided.

Makes a generator result optional. Either Some(T) or None will be provided.

Source:
Gen.scala
def parameterized[T](f: Parameters => Gen[T]): Gen[T]

Creates a generator that can access its generation parameters

Creates a generator that can access its generation parameters

Source:
Gen.scala
def pick[T](n: Int, l: Iterable[T]): Gen[Seq[T]]

A generator that randomly picks a given number of elements from a list

A generator that randomly picks a given number of elements from a list

The elements are not guaranteed to be permuted in random order.

Source:
Gen.scala
def pick[T](n: Int, g1: Gen[T], g2: Gen[T], gn: Gen[T]*): Gen[Seq[T]]

A generator that randomly picks a given number of elements from a list

A generator that randomly picks a given number of elements from a list

The elements are not guaranteed to be permuted in random order.

Source:
Gen.scala
def poisson(rate: Double): Gen[Int]

Generates Int values according to the given Poisson distribution, specified by its rate parameters.

Generates Int values according to the given Poisson distribution, specified by its rate parameters.

The mean equals the rate; the standard deviation is sqrt(rate).

In principle any positive value is a valid rate parameter. However, our method of generating values cannot handle large rates, so we require rate <= 745.

Source:
Gen.scala
def posNum[T](implicit num: Numeric[T], c: Choose[T]): Gen[T]

Generates positive numbers of uniform distribution, with an upper bound of the generation size parameter.

Generates positive numbers of uniform distribution, with an upper bound of the generation size parameter.

Source:
Gen.scala
def prob(chance: Double): Gen[Boolean]

Generates a Boolean which has the given chance to be true.

Generates a Boolean which has the given chance to be true.

  • prob(1.0) is always true
  • prob(0.5) is true 50% of the time
  • prob(0.1) is true 10% of the time
  • prob(0.0) is never true
Source:
Gen.scala
def recursive[A](fn: Gen[A] => Gen[A]): Gen[A]

A fixed point generator. This is useful for making recursive structures e.g.

A fixed point generator. This is useful for making recursive structures e.g.

Gen.recursive[List[Int]] { recurse => Gen.choose(0, 10).flatMap { idx => if (idx < 5) recurse.map(idx :: _) else Gen.const(idx :: Nil) } }

Source:
Gen.scala
def resize[T](s: Int, g: Gen[T]): Gen[T]

Creates a resized version of a generator

Creates a resized version of a generator

Source:
Gen.scala
def resultOf[T, R0](f: T => R0)(implicit a: Arbitrary[T]): Gen[R0]

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Source:
Gen.scala
def sequence[C, T](gs: Iterable[Gen[T]])(implicit b: Buildable[T, C]): Gen[C]

Sequences generators. If any of the given generators fails, the resulting generator will also fail.

Sequences generators. If any of the given generators fails, the resulting generator will also fail.

Source:
Gen.scala
def sized[T](f: Int => Gen[T]): Gen[T]

Creates a generator that can access its generation size

Creates a generator that can access its generation size

Source:
Gen.scala
def some[T](g: Gen[T]): Gen[Option[T]]

A generator that returns Some(T)

A generator that returns Some(T)

Source:
Gen.scala
def someOf[T](l: Iterable[T]): Gen[Seq[T]]

A generator that picks a random number of elements from a list

A generator that picks a random number of elements from a list

Source:
Gen.scala
def someOf[T](g1: Gen[T], g2: Gen[T], gs: Gen[T]*): Gen[Seq[T]]

A generator that picks a random number of elements from a list

A generator that picks a random number of elements from a list

Source:
Gen.scala
def stringOf(gc: Gen[Char]): Gen[String]
Source:
Gen.scala
def stringOfN(n: Int, gc: Gen[Char]): Gen[String]
Source:
Gen.scala
def tailRecM[A, B](a0: A)(fn: A => Gen[Either[A, B]]): Gen[B]

Monadic recursion on Gen This is a stack-safe loop that is the same as:

Monadic recursion on Gen This is a stack-safe loop that is the same as:


fn(a).flatMap {
 case Left(a) => tailRec(a)(fn)
 case Right(b) => Gen.const(b)
 }

which is useful for doing monadic loops without blowing up the stack

Source:
Gen.scala

Inherited methods

def function1[T1, Z](g: Gen[Z])(implicit co1: Cogen[T1]): Gen[T1 => Z]

Gen creator for Function1

Gen creator for Function1

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def function10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, Z](g: Gen[Z])(implicit co1: Cogen[T1], co2: Cogen[T2], co3: Cogen[T3], co4: Cogen[T4], co5: Cogen[T5], co6: Cogen[T6], co7: Cogen[T7], co8: Cogen[T8], co9: Cogen[T9], co10: Cogen[T10]): Gen[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) => Z]

Gen creator for Function10

Gen creator for Function10

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def function11[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, Z](g: Gen[Z])(implicit co1: Cogen[T1], co2: Cogen[T2], co3: Cogen[T3], co4: Cogen[T4], co5: Cogen[T5], co6: Cogen[T6], co7: Cogen[T7], co8: Cogen[T8], co9: Cogen[T9], co10: Cogen[T10], co11: Cogen[T11]): Gen[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) => Z]

Gen creator for Function11

Gen creator for Function11

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def function12[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, Z](g: Gen[Z])(implicit co1: Cogen[T1], co2: Cogen[T2], co3: Cogen[T3], co4: Cogen[T4], co5: Cogen[T5], co6: Cogen[T6], co7: Cogen[T7], co8: Cogen[T8], co9: Cogen[T9], co10: Cogen[T10], co11: Cogen[T11], co12: Cogen[T12]): Gen[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12) => Z]

Gen creator for Function12

Gen creator for Function12

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def function13[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, Z](g: Gen[Z])(implicit co1: Cogen[T1], co2: Cogen[T2], co3: Cogen[T3], co4: Cogen[T4], co5: Cogen[T5], co6: Cogen[T6], co7: Cogen[T7], co8: Cogen[T8], co9: Cogen[T9], co10: Cogen[T10], co11: Cogen[T11], co12: Cogen[T12], co13: Cogen[T13]): Gen[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13) => Z]

Gen creator for Function13

Gen creator for Function13

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def function14[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, Z](g: Gen[Z])(implicit co1: Cogen[T1], co2: Cogen[T2], co3: Cogen[T3], co4: Cogen[T4], co5: Cogen[T5], co6: Cogen[T6], co7: Cogen[T7], co8: Cogen[T8], co9: Cogen[T9], co10: Cogen[T10], co11: Cogen[T11], co12: Cogen[T12], co13: Cogen[T13], co14: Cogen[T14]): Gen[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14) => Z]

Gen creator for Function14

Gen creator for Function14

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def function15[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, Z](g: Gen[Z])(implicit co1: Cogen[T1], co2: Cogen[T2], co3: Cogen[T3], co4: Cogen[T4], co5: Cogen[T5], co6: Cogen[T6], co7: Cogen[T7], co8: Cogen[T8], co9: Cogen[T9], co10: Cogen[T10], co11: Cogen[T11], co12: Cogen[T12], co13: Cogen[T13], co14: Cogen[T14], co15: Cogen[T15]): Gen[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15) => Z]

Gen creator for Function15

Gen creator for Function15

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def function16[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, Z](g: Gen[Z])(implicit co1: Cogen[T1], co2: Cogen[T2], co3: Cogen[T3], co4: Cogen[T4], co5: Cogen[T5], co6: Cogen[T6], co7: Cogen[T7], co8: Cogen[T8], co9: Cogen[T9], co10: Cogen[T10], co11: Cogen[T11], co12: Cogen[T12], co13: Cogen[T13], co14: Cogen[T14], co15: Cogen[T15], co16: Cogen[T16]): Gen[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) => Z]

Gen creator for Function16

Gen creator for Function16

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def function17[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, Z](g: Gen[Z])(implicit co1: Cogen[T1], co2: Cogen[T2], co3: Cogen[T3], co4: Cogen[T4], co5: Cogen[T5], co6: Cogen[T6], co7: Cogen[T7], co8: Cogen[T8], co9: Cogen[T9], co10: Cogen[T10], co11: Cogen[T11], co12: Cogen[T12], co13: Cogen[T13], co14: Cogen[T14], co15: Cogen[T15], co16: Cogen[T16], co17: Cogen[T17]): Gen[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17) => Z]

Gen creator for Function17

Gen creator for Function17

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def function18[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, Z](g: Gen[Z])(implicit co1: Cogen[T1], co2: Cogen[T2], co3: Cogen[T3], co4: Cogen[T4], co5: Cogen[T5], co6: Cogen[T6], co7: Cogen[T7], co8: Cogen[T8], co9: Cogen[T9], co10: Cogen[T10], co11: Cogen[T11], co12: Cogen[T12], co13: Cogen[T13], co14: Cogen[T14], co15: Cogen[T15], co16: Cogen[T16], co17: Cogen[T17], co18: Cogen[T18]): Gen[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18) => Z]

Gen creator for Function18

Gen creator for Function18

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def function19[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, Z](g: Gen[Z])(implicit co1: Cogen[T1], co2: Cogen[T2], co3: Cogen[T3], co4: Cogen[T4], co5: Cogen[T5], co6: Cogen[T6], co7: Cogen[T7], co8: Cogen[T8], co9: Cogen[T9], co10: Cogen[T10], co11: Cogen[T11], co12: Cogen[T12], co13: Cogen[T13], co14: Cogen[T14], co15: Cogen[T15], co16: Cogen[T16], co17: Cogen[T17], co18: Cogen[T18], co19: Cogen[T19]): Gen[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19) => Z]

Gen creator for Function19

Gen creator for Function19

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def function2[T1, T2, Z](g: Gen[Z])(implicit co1: Cogen[T1], co2: Cogen[T2]): Gen[(T1, T2) => Z]

Gen creator for Function2

Gen creator for Function2

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def function20[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, Z](g: Gen[Z])(implicit co1: Cogen[T1], co2: Cogen[T2], co3: Cogen[T3], co4: Cogen[T4], co5: Cogen[T5], co6: Cogen[T6], co7: Cogen[T7], co8: Cogen[T8], co9: Cogen[T9], co10: Cogen[T10], co11: Cogen[T11], co12: Cogen[T12], co13: Cogen[T13], co14: Cogen[T14], co15: Cogen[T15], co16: Cogen[T16], co17: Cogen[T17], co18: Cogen[T18], co19: Cogen[T19], co20: Cogen[T20]): Gen[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20) => Z]

Gen creator for Function20

Gen creator for Function20

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def function21[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, Z](g: Gen[Z])(implicit co1: Cogen[T1], co2: Cogen[T2], co3: Cogen[T3], co4: Cogen[T4], co5: Cogen[T5], co6: Cogen[T6], co7: Cogen[T7], co8: Cogen[T8], co9: Cogen[T9], co10: Cogen[T10], co11: Cogen[T11], co12: Cogen[T12], co13: Cogen[T13], co14: Cogen[T14], co15: Cogen[T15], co16: Cogen[T16], co17: Cogen[T17], co18: Cogen[T18], co19: Cogen[T19], co20: Cogen[T20], co21: Cogen[T21]): Gen[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21) => Z]

Gen creator for Function21

Gen creator for Function21

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def function22[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, Z](g: Gen[Z])(implicit co1: Cogen[T1], co2: Cogen[T2], co3: Cogen[T3], co4: Cogen[T4], co5: Cogen[T5], co6: Cogen[T6], co7: Cogen[T7], co8: Cogen[T8], co9: Cogen[T9], co10: Cogen[T10], co11: Cogen[T11], co12: Cogen[T12], co13: Cogen[T13], co14: Cogen[T14], co15: Cogen[T15], co16: Cogen[T16], co17: Cogen[T17], co18: Cogen[T18], co19: Cogen[T19], co20: Cogen[T20], co21: Cogen[T21], co22: Cogen[T22]): Gen[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22) => Z]

Gen creator for Function22

Gen creator for Function22

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def function3[T1, T2, T3, Z](g: Gen[Z])(implicit co1: Cogen[T1], co2: Cogen[T2], co3: Cogen[T3]): Gen[(T1, T2, T3) => Z]

Gen creator for Function3

Gen creator for Function3

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def function4[T1, T2, T3, T4, Z](g: Gen[Z])(implicit co1: Cogen[T1], co2: Cogen[T2], co3: Cogen[T3], co4: Cogen[T4]): Gen[(T1, T2, T3, T4) => Z]

Gen creator for Function4

Gen creator for Function4

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def function5[T1, T2, T3, T4, T5, Z](g: Gen[Z])(implicit co1: Cogen[T1], co2: Cogen[T2], co3: Cogen[T3], co4: Cogen[T4], co5: Cogen[T5]): Gen[(T1, T2, T3, T4, T5) => Z]

Gen creator for Function5

Gen creator for Function5

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def function6[T1, T2, T3, T4, T5, T6, Z](g: Gen[Z])(implicit co1: Cogen[T1], co2: Cogen[T2], co3: Cogen[T3], co4: Cogen[T4], co5: Cogen[T5], co6: Cogen[T6]): Gen[(T1, T2, T3, T4, T5, T6) => Z]

Gen creator for Function6

Gen creator for Function6

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def function7[T1, T2, T3, T4, T5, T6, T7, Z](g: Gen[Z])(implicit co1: Cogen[T1], co2: Cogen[T2], co3: Cogen[T3], co4: Cogen[T4], co5: Cogen[T5], co6: Cogen[T6], co7: Cogen[T7]): Gen[(T1, T2, T3, T4, T5, T6, T7) => Z]

Gen creator for Function7

Gen creator for Function7

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def function8[T1, T2, T3, T4, T5, T6, T7, T8, Z](g: Gen[Z])(implicit co1: Cogen[T1], co2: Cogen[T2], co3: Cogen[T3], co4: Cogen[T4], co5: Cogen[T5], co6: Cogen[T6], co7: Cogen[T7], co8: Cogen[T8]): Gen[(T1, T2, T3, T4, T5, T6, T7, T8) => Z]

Gen creator for Function8

Gen creator for Function8

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def function9[T1, T2, T3, T4, T5, T6, T7, T8, T9, Z](g: Gen[Z])(implicit co1: Cogen[T1], co2: Cogen[T2], co3: Cogen[T3], co4: Cogen[T4], co5: Cogen[T5], co6: Cogen[T6], co7: Cogen[T7], co8: Cogen[T8], co9: Cogen[T9]): Gen[(T1, T2, T3, T4, T5, T6, T7, T8, T9) => Z]

Gen creator for Function9

Gen creator for Function9

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def infiniteLazyList[T](g: => Gen[T]): Gen[LazyList[T]]

Generates an infinite lazy list.

Generates an infinite lazy list.

Inherited from:
GenVersionSpecific (hidden)
Source:
ScalaVersionSpecific.scala
def resultOf[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, R](f: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22) => R)(implicit a1: Arbitrary[T1], a2: Arbitrary[T2], a3: Arbitrary[T3], a4: Arbitrary[T4], a5: Arbitrary[T5], a6: Arbitrary[T6], a7: Arbitrary[T7], a8: Arbitrary[T8], a9: Arbitrary[T9], a10: Arbitrary[T10], a11: Arbitrary[T11], a12: Arbitrary[T12], a13: Arbitrary[T13], a14: Arbitrary[T14], a15: Arbitrary[T15], a16: Arbitrary[T16], a17: Arbitrary[T17], a18: Arbitrary[T18], a19: Arbitrary[T19], a20: Arbitrary[T20], a21: Arbitrary[T21], a22: Arbitrary[T22]): Gen[R]

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def resultOf[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, R](f: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21) => R)(implicit a1: Arbitrary[T1], a2: Arbitrary[T2], a3: Arbitrary[T3], a4: Arbitrary[T4], a5: Arbitrary[T5], a6: Arbitrary[T6], a7: Arbitrary[T7], a8: Arbitrary[T8], a9: Arbitrary[T9], a10: Arbitrary[T10], a11: Arbitrary[T11], a12: Arbitrary[T12], a13: Arbitrary[T13], a14: Arbitrary[T14], a15: Arbitrary[T15], a16: Arbitrary[T16], a17: Arbitrary[T17], a18: Arbitrary[T18], a19: Arbitrary[T19], a20: Arbitrary[T20], a21: Arbitrary[T21]): Gen[R]

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def resultOf[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, R](f: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20) => R)(implicit a1: Arbitrary[T1], a2: Arbitrary[T2], a3: Arbitrary[T3], a4: Arbitrary[T4], a5: Arbitrary[T5], a6: Arbitrary[T6], a7: Arbitrary[T7], a8: Arbitrary[T8], a9: Arbitrary[T9], a10: Arbitrary[T10], a11: Arbitrary[T11], a12: Arbitrary[T12], a13: Arbitrary[T13], a14: Arbitrary[T14], a15: Arbitrary[T15], a16: Arbitrary[T16], a17: Arbitrary[T17], a18: Arbitrary[T18], a19: Arbitrary[T19], a20: Arbitrary[T20]): Gen[R]

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def resultOf[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, R](f: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19) => R)(implicit a1: Arbitrary[T1], a2: Arbitrary[T2], a3: Arbitrary[T3], a4: Arbitrary[T4], a5: Arbitrary[T5], a6: Arbitrary[T6], a7: Arbitrary[T7], a8: Arbitrary[T8], a9: Arbitrary[T9], a10: Arbitrary[T10], a11: Arbitrary[T11], a12: Arbitrary[T12], a13: Arbitrary[T13], a14: Arbitrary[T14], a15: Arbitrary[T15], a16: Arbitrary[T16], a17: Arbitrary[T17], a18: Arbitrary[T18], a19: Arbitrary[T19]): Gen[R]

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def resultOf[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, R](f: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18) => R)(implicit a1: Arbitrary[T1], a2: Arbitrary[T2], a3: Arbitrary[T3], a4: Arbitrary[T4], a5: Arbitrary[T5], a6: Arbitrary[T6], a7: Arbitrary[T7], a8: Arbitrary[T8], a9: Arbitrary[T9], a10: Arbitrary[T10], a11: Arbitrary[T11], a12: Arbitrary[T12], a13: Arbitrary[T13], a14: Arbitrary[T14], a15: Arbitrary[T15], a16: Arbitrary[T16], a17: Arbitrary[T17], a18: Arbitrary[T18]): Gen[R]

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def resultOf[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, R](f: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17) => R)(implicit a1: Arbitrary[T1], a2: Arbitrary[T2], a3: Arbitrary[T3], a4: Arbitrary[T4], a5: Arbitrary[T5], a6: Arbitrary[T6], a7: Arbitrary[T7], a8: Arbitrary[T8], a9: Arbitrary[T9], a10: Arbitrary[T10], a11: Arbitrary[T11], a12: Arbitrary[T12], a13: Arbitrary[T13], a14: Arbitrary[T14], a15: Arbitrary[T15], a16: Arbitrary[T16], a17: Arbitrary[T17]): Gen[R]

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def resultOf[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, R](f: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) => R)(implicit a1: Arbitrary[T1], a2: Arbitrary[T2], a3: Arbitrary[T3], a4: Arbitrary[T4], a5: Arbitrary[T5], a6: Arbitrary[T6], a7: Arbitrary[T7], a8: Arbitrary[T8], a9: Arbitrary[T9], a10: Arbitrary[T10], a11: Arbitrary[T11], a12: Arbitrary[T12], a13: Arbitrary[T13], a14: Arbitrary[T14], a15: Arbitrary[T15], a16: Arbitrary[T16]): Gen[R]

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def resultOf[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, R](f: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15) => R)(implicit a1: Arbitrary[T1], a2: Arbitrary[T2], a3: Arbitrary[T3], a4: Arbitrary[T4], a5: Arbitrary[T5], a6: Arbitrary[T6], a7: Arbitrary[T7], a8: Arbitrary[T8], a9: Arbitrary[T9], a10: Arbitrary[T10], a11: Arbitrary[T11], a12: Arbitrary[T12], a13: Arbitrary[T13], a14: Arbitrary[T14], a15: Arbitrary[T15]): Gen[R]

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def resultOf[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, R](f: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14) => R)(implicit a1: Arbitrary[T1], a2: Arbitrary[T2], a3: Arbitrary[T3], a4: Arbitrary[T4], a5: Arbitrary[T5], a6: Arbitrary[T6], a7: Arbitrary[T7], a8: Arbitrary[T8], a9: Arbitrary[T9], a10: Arbitrary[T10], a11: Arbitrary[T11], a12: Arbitrary[T12], a13: Arbitrary[T13], a14: Arbitrary[T14]): Gen[R]

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def resultOf[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, R](f: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13) => R)(implicit a1: Arbitrary[T1], a2: Arbitrary[T2], a3: Arbitrary[T3], a4: Arbitrary[T4], a5: Arbitrary[T5], a6: Arbitrary[T6], a7: Arbitrary[T7], a8: Arbitrary[T8], a9: Arbitrary[T9], a10: Arbitrary[T10], a11: Arbitrary[T11], a12: Arbitrary[T12], a13: Arbitrary[T13]): Gen[R]

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def resultOf[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, R](f: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12) => R)(implicit a1: Arbitrary[T1], a2: Arbitrary[T2], a3: Arbitrary[T3], a4: Arbitrary[T4], a5: Arbitrary[T5], a6: Arbitrary[T6], a7: Arbitrary[T7], a8: Arbitrary[T8], a9: Arbitrary[T9], a10: Arbitrary[T10], a11: Arbitrary[T11], a12: Arbitrary[T12]): Gen[R]

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def resultOf[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, R](f: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) => R)(implicit a1: Arbitrary[T1], a2: Arbitrary[T2], a3: Arbitrary[T3], a4: Arbitrary[T4], a5: Arbitrary[T5], a6: Arbitrary[T6], a7: Arbitrary[T7], a8: Arbitrary[T8], a9: Arbitrary[T9], a10: Arbitrary[T10], a11: Arbitrary[T11]): Gen[R]

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def resultOf[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, R](f: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) => R)(implicit a1: Arbitrary[T1], a2: Arbitrary[T2], a3: Arbitrary[T3], a4: Arbitrary[T4], a5: Arbitrary[T5], a6: Arbitrary[T6], a7: Arbitrary[T7], a8: Arbitrary[T8], a9: Arbitrary[T9], a10: Arbitrary[T10]): Gen[R]

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def resultOf[T1, T2, T3, T4, T5, T6, T7, T8, T9, R](f: (T1, T2, T3, T4, T5, T6, T7, T8, T9) => R)(implicit a1: Arbitrary[T1], a2: Arbitrary[T2], a3: Arbitrary[T3], a4: Arbitrary[T4], a5: Arbitrary[T5], a6: Arbitrary[T6], a7: Arbitrary[T7], a8: Arbitrary[T8], a9: Arbitrary[T9]): Gen[R]

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def resultOf[T1, T2, T3, T4, T5, T6, T7, T8, R](f: (T1, T2, T3, T4, T5, T6, T7, T8) => R)(implicit a1: Arbitrary[T1], a2: Arbitrary[T2], a3: Arbitrary[T3], a4: Arbitrary[T4], a5: Arbitrary[T5], a6: Arbitrary[T6], a7: Arbitrary[T7], a8: Arbitrary[T8]): Gen[R]

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def resultOf[T1, T2, T3, T4, T5, T6, T7, R](f: (T1, T2, T3, T4, T5, T6, T7) => R)(implicit a1: Arbitrary[T1], a2: Arbitrary[T2], a3: Arbitrary[T3], a4: Arbitrary[T4], a5: Arbitrary[T5], a6: Arbitrary[T6], a7: Arbitrary[T7]): Gen[R]

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def resultOf[T1, T2, T3, T4, T5, T6, R](f: (T1, T2, T3, T4, T5, T6) => R)(implicit a1: Arbitrary[T1], a2: Arbitrary[T2], a3: Arbitrary[T3], a4: Arbitrary[T4], a5: Arbitrary[T5], a6: Arbitrary[T6]): Gen[R]

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def resultOf[T1, T2, T3, T4, T5, R](f: (T1, T2, T3, T4, T5) => R)(implicit a1: Arbitrary[T1], a2: Arbitrary[T2], a3: Arbitrary[T3], a4: Arbitrary[T4], a5: Arbitrary[T5]): Gen[R]

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def resultOf[T1, T2, T3, T4, R](f: (T1, T2, T3, T4) => R)(implicit a1: Arbitrary[T1], a2: Arbitrary[T2], a3: Arbitrary[T3], a4: Arbitrary[T4]): Gen[R]

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def resultOf[T1, T2, T3, R](f: (T1, T2, T3) => R)(implicit a1: Arbitrary[T1], a2: Arbitrary[T2], a3: Arbitrary[T3]): Gen[R]

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def resultOf[T1, T2, R](f: (T1, T2) => R)(implicit a1: Arbitrary[T1], a2: Arbitrary[T2]): Gen[R]

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def zip[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22](g1: Gen[T1], g2: Gen[T2], g3: Gen[T3], g4: Gen[T4], g5: Gen[T5], g6: Gen[T6], g7: Gen[T7], g8: Gen[T8], g9: Gen[T9], g10: Gen[T10], g11: Gen[T11], g12: Gen[T12], g13: Gen[T13], g14: Gen[T14], g15: Gen[T15], g16: Gen[T16], g17: Gen[T17], g18: Gen[T18], g19: Gen[T19], g20: Gen[T20], g21: Gen[T21], g22: Gen[T22]): Gen[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22)]

Combines the given generators into one generator that produces a tuple of their generated values.

Combines the given generators into one generator that produces a tuple of their generated values.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def zip[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21](g1: Gen[T1], g2: Gen[T2], g3: Gen[T3], g4: Gen[T4], g5: Gen[T5], g6: Gen[T6], g7: Gen[T7], g8: Gen[T8], g9: Gen[T9], g10: Gen[T10], g11: Gen[T11], g12: Gen[T12], g13: Gen[T13], g14: Gen[T14], g15: Gen[T15], g16: Gen[T16], g17: Gen[T17], g18: Gen[T18], g19: Gen[T19], g20: Gen[T20], g21: Gen[T21]): Gen[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21)]

Combines the given generators into one generator that produces a tuple of their generated values.

Combines the given generators into one generator that produces a tuple of their generated values.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def zip[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20](g1: Gen[T1], g2: Gen[T2], g3: Gen[T3], g4: Gen[T4], g5: Gen[T5], g6: Gen[T6], g7: Gen[T7], g8: Gen[T8], g9: Gen[T9], g10: Gen[T10], g11: Gen[T11], g12: Gen[T12], g13: Gen[T13], g14: Gen[T14], g15: Gen[T15], g16: Gen[T16], g17: Gen[T17], g18: Gen[T18], g19: Gen[T19], g20: Gen[T20]): Gen[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20)]

Combines the given generators into one generator that produces a tuple of their generated values.

Combines the given generators into one generator that produces a tuple of their generated values.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def zip[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19](g1: Gen[T1], g2: Gen[T2], g3: Gen[T3], g4: Gen[T4], g5: Gen[T5], g6: Gen[T6], g7: Gen[T7], g8: Gen[T8], g9: Gen[T9], g10: Gen[T10], g11: Gen[T11], g12: Gen[T12], g13: Gen[T13], g14: Gen[T14], g15: Gen[T15], g16: Gen[T16], g17: Gen[T17], g18: Gen[T18], g19: Gen[T19]): Gen[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19)]

Combines the given generators into one generator that produces a tuple of their generated values.

Combines the given generators into one generator that produces a tuple of their generated values.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def zip[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18](g1: Gen[T1], g2: Gen[T2], g3: Gen[T3], g4: Gen[T4], g5: Gen[T5], g6: Gen[T6], g7: Gen[T7], g8: Gen[T8], g9: Gen[T9], g10: Gen[T10], g11: Gen[T11], g12: Gen[T12], g13: Gen[T13], g14: Gen[T14], g15: Gen[T15], g16: Gen[T16], g17: Gen[T17], g18: Gen[T18]): Gen[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18)]

Combines the given generators into one generator that produces a tuple of their generated values.

Combines the given generators into one generator that produces a tuple of their generated values.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def zip[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17](g1: Gen[T1], g2: Gen[T2], g3: Gen[T3], g4: Gen[T4], g5: Gen[T5], g6: Gen[T6], g7: Gen[T7], g8: Gen[T8], g9: Gen[T9], g10: Gen[T10], g11: Gen[T11], g12: Gen[T12], g13: Gen[T13], g14: Gen[T14], g15: Gen[T15], g16: Gen[T16], g17: Gen[T17]): Gen[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17)]

Combines the given generators into one generator that produces a tuple of their generated values.

Combines the given generators into one generator that produces a tuple of their generated values.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def zip[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16](g1: Gen[T1], g2: Gen[T2], g3: Gen[T3], g4: Gen[T4], g5: Gen[T5], g6: Gen[T6], g7: Gen[T7], g8: Gen[T8], g9: Gen[T9], g10: Gen[T10], g11: Gen[T11], g12: Gen[T12], g13: Gen[T13], g14: Gen[T14], g15: Gen[T15], g16: Gen[T16]): Gen[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)]

Combines the given generators into one generator that produces a tuple of their generated values.

Combines the given generators into one generator that produces a tuple of their generated values.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def zip[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15](g1: Gen[T1], g2: Gen[T2], g3: Gen[T3], g4: Gen[T4], g5: Gen[T5], g6: Gen[T6], g7: Gen[T7], g8: Gen[T8], g9: Gen[T9], g10: Gen[T10], g11: Gen[T11], g12: Gen[T12], g13: Gen[T13], g14: Gen[T14], g15: Gen[T15]): Gen[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)]

Combines the given generators into one generator that produces a tuple of their generated values.

Combines the given generators into one generator that produces a tuple of their generated values.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def zip[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14](g1: Gen[T1], g2: Gen[T2], g3: Gen[T3], g4: Gen[T4], g5: Gen[T5], g6: Gen[T6], g7: Gen[T7], g8: Gen[T8], g9: Gen[T9], g10: Gen[T10], g11: Gen[T11], g12: Gen[T12], g13: Gen[T13], g14: Gen[T14]): Gen[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)]

Combines the given generators into one generator that produces a tuple of their generated values.

Combines the given generators into one generator that produces a tuple of their generated values.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def zip[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13](g1: Gen[T1], g2: Gen[T2], g3: Gen[T3], g4: Gen[T4], g5: Gen[T5], g6: Gen[T6], g7: Gen[T7], g8: Gen[T8], g9: Gen[T9], g10: Gen[T10], g11: Gen[T11], g12: Gen[T12], g13: Gen[T13]): Gen[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)]

Combines the given generators into one generator that produces a tuple of their generated values.

Combines the given generators into one generator that produces a tuple of their generated values.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def zip[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12](g1: Gen[T1], g2: Gen[T2], g3: Gen[T3], g4: Gen[T4], g5: Gen[T5], g6: Gen[T6], g7: Gen[T7], g8: Gen[T8], g9: Gen[T9], g10: Gen[T10], g11: Gen[T11], g12: Gen[T12]): Gen[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)]

Combines the given generators into one generator that produces a tuple of their generated values.

Combines the given generators into one generator that produces a tuple of their generated values.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def zip[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11](g1: Gen[T1], g2: Gen[T2], g3: Gen[T3], g4: Gen[T4], g5: Gen[T5], g6: Gen[T6], g7: Gen[T7], g8: Gen[T8], g9: Gen[T9], g10: Gen[T10], g11: Gen[T11]): Gen[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)]

Combines the given generators into one generator that produces a tuple of their generated values.

Combines the given generators into one generator that produces a tuple of their generated values.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def zip[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10](g1: Gen[T1], g2: Gen[T2], g3: Gen[T3], g4: Gen[T4], g5: Gen[T5], g6: Gen[T6], g7: Gen[T7], g8: Gen[T8], g9: Gen[T9], g10: Gen[T10]): Gen[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)]

Combines the given generators into one generator that produces a tuple of their generated values.

Combines the given generators into one generator that produces a tuple of their generated values.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def zip[T1, T2, T3, T4, T5, T6, T7, T8, T9](g1: Gen[T1], g2: Gen[T2], g3: Gen[T3], g4: Gen[T4], g5: Gen[T5], g6: Gen[T6], g7: Gen[T7], g8: Gen[T8], g9: Gen[T9]): Gen[(T1, T2, T3, T4, T5, T6, T7, T8, T9)]

Combines the given generators into one generator that produces a tuple of their generated values.

Combines the given generators into one generator that produces a tuple of their generated values.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def zip[T1, T2, T3, T4, T5, T6, T7, T8](g1: Gen[T1], g2: Gen[T2], g3: Gen[T3], g4: Gen[T4], g5: Gen[T5], g6: Gen[T6], g7: Gen[T7], g8: Gen[T8]): Gen[(T1, T2, T3, T4, T5, T6, T7, T8)]

Combines the given generators into one generator that produces a tuple of their generated values.

Combines the given generators into one generator that produces a tuple of their generated values.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def zip[T1, T2, T3, T4, T5, T6, T7](g1: Gen[T1], g2: Gen[T2], g3: Gen[T3], g4: Gen[T4], g5: Gen[T5], g6: Gen[T6], g7: Gen[T7]): Gen[(T1, T2, T3, T4, T5, T6, T7)]

Combines the given generators into one generator that produces a tuple of their generated values.

Combines the given generators into one generator that produces a tuple of their generated values.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def zip[T1, T2, T3, T4, T5, T6](g1: Gen[T1], g2: Gen[T2], g3: Gen[T3], g4: Gen[T4], g5: Gen[T5], g6: Gen[T6]): Gen[(T1, T2, T3, T4, T5, T6)]

Combines the given generators into one generator that produces a tuple of their generated values.

Combines the given generators into one generator that produces a tuple of their generated values.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def zip[T1, T2, T3, T4, T5](g1: Gen[T1], g2: Gen[T2], g3: Gen[T3], g4: Gen[T4], g5: Gen[T5]): Gen[(T1, T2, T3, T4, T5)]

Combines the given generators into one generator that produces a tuple of their generated values.

Combines the given generators into one generator that produces a tuple of their generated values.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def zip[T1, T2, T3, T4](g1: Gen[T1], g2: Gen[T2], g3: Gen[T3], g4: Gen[T4]): Gen[(T1, T2, T3, T4)]

Combines the given generators into one generator that produces a tuple of their generated values.

Combines the given generators into one generator that produces a tuple of their generated values.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def zip[T1, T2, T3](g1: Gen[T1], g2: Gen[T2], g3: Gen[T3]): Gen[(T1, T2, T3)]

Combines the given generators into one generator that produces a tuple of their generated values.

Combines the given generators into one generator that produces a tuple of their generated values.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def zip[T1, T2](g1: Gen[T1], g2: Gen[T2]): Gen[(T1, T2)]

Combines the given generators into one generator that produces a tuple of their generated values.

Combines the given generators into one generator that produces a tuple of their generated values.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala
def zip[T1](g1: Gen[T1]): Gen[T1]

Combines the given generators into one generator that produces a tuple of their generated values.

Combines the given generators into one generator that produces a tuple of their generated values.

Inherited from:
GenArities (hidden)
Source:
GenArities.scala

Concrete fields

Generates an alpha character

Generates an alpha character

Source:
Gen.scala

Generates a lower-case alpha character

Generates a lower-case alpha character

Source:
Gen.scala

Generates a string of lower-case alpha characters

Generates a string of lower-case alpha characters

Source:
Gen.scala

Generates an alphanumerical character

Generates an alphanumerical character

Source:
Gen.scala

Generates a string of alphanumerical characters

Generates a string of alphanumerical characters

Source:
Gen.scala

Generates a string of alpha characters

Generates a string of alpha characters

Source:
Gen.scala

Generates an upper-case alpha character

Generates an upper-case alpha character

Source:
Gen.scala

Generates a string of upper-case alpha characters

Generates a string of upper-case alpha characters

Source:
Gen.scala

Generates a ASCII character, with extra weighting for printable characters

Generates a ASCII character, with extra weighting for printable characters

Source:
Gen.scala

Generates a ASCII printable character

Generates a ASCII printable character

Source:
Gen.scala

Generates a string of ASCII printable characters

Generates a string of ASCII printable characters

Source:
Gen.scala

Generates a string of ASCII characters, with extra weighting for printable characters

Generates a string of ASCII characters, with extra weighting for printable characters

Source:
Gen.scala
lazy val calendar: Gen[Calendar]
Source:
Gen.scala

Generate a Double uniformly-distributed in [0, 1).

Generate a Double uniformly-distributed in [0, 1).

This method will generate one of 2^53 distinct Double values in the unit interval.

Source:
Gen.scala

Generates instance of Duration.

Generates instance of Duration.

In addition to FiniteDuration values, this can generate Duration.Inf, Duration.MinusInf, and Duration.Undefined.

Source:
Gen.scala

Generates a character that can represent a valid hexadecimal digit. This includes both upper and lower case values.

Generates a character that can represent a valid hexadecimal digit. This includes both upper and lower case values.

Source:
Gen.scala

Generates a string that can represent a valid hexadecimal digit. This includes both upper and lower case values.

Generates a string that can represent a valid hexadecimal digit. This includes both upper and lower case values.

Source:
Gen.scala

Generates a string that starts with a lower-case alpha character, and only contains alphanumerical characters

Generates a string that starts with a lower-case alpha character, and only contains alphanumerical characters

Source:
Gen.scala
val long: Gen[Long]

Generate a uniformly-distributed Long.

Generate a uniformly-distributed Long.

This method has an equally likely method of generating every possible Long value.

Source:
Gen.scala

Generates a numerical character

Generates a numerical character

Source:
Gen.scala

Generates a string of digits

Generates a string of digits

Source:
Gen.scala
lazy val size: Gen[Int]

A generator that returns the current generation size

A generator that returns the current generation size

Source:
Gen.scala
lazy val uuid: Gen[UUID]

Generates a version 4 (random) UUID.

Generates a version 4 (random) UUID.

Source:
Gen.scala

Implicits

Implicits

implicit def const[T](x: T): Gen[T]

A generator that always generates the given value

A generator that always generates the given value

Source:
Gen.scala
implicit def freqTuple[T](t: (Int, T)): (Int, Gen[T])

Implicit convenience method for using the frequency method like this:

Implicit convenience method for using the frequency method like this:

 frequency((1, "foo"), (3, "bar"))
Source:
Gen.scala