org.scalacheck

Gen

sealed trait Gen[+T] extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Gen
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. final class WithFilter extends AnyRef

    A class supporting filtered operations.

Value Members

  1. def !=[U](g: Gen[U]): Prop

  2. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  3. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  4. def !==[U](g: Gen[U]): Prop

  5. final def ##(): Int

    Definition Classes
    AnyRef → Any
  6. def :|(l: Symbol): Gen[T]

    Put a label on the generator to make test reports clearer

  7. def :|(l: String): Gen[T]

    Put a label on the generator to make test reports clearer

  8. def ==[U](g: Gen[U]): Prop

    Returns a new property that holds if and only if both this and the given generator generates the same result, or both generators generate no result.

  9. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  11. def apply(p: Parameters): Option[T]

    Evaluate this generator with the given parameters

  12. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  13. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  16. def filter(p: (T) ⇒ Boolean): Gen[T]

    Create a new generator that uses this generator to produce a value that fulfills the given condition.

    Create a new generator that uses this generator to produce a value that fulfills the given condition. If the condition is not fulfilled, the generator fails (returns None).

  17. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def flatMap[U](f: (T) ⇒ Gen[U]): Gen[U]

    Create a new generator by flat-mapping the result of this generator

  19. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. def label(l: String): Gen[T]

    Put a label on the generator to make test reports clearer

  23. def map[U](f: (T) ⇒ U): Gen[U]

    Create a new generator by mapping the result of this generator

  24. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  27. def retryUntil(p: (T) ⇒ Boolean): Gen[T]

    Create a generator that calls this generator repeatedly until the given condition is fulfilled.

    Create a generator that calls this generator repeatedly until the given condition is fulfilled. The generated value is then returned. Use this combinator with care, since it may result in infinite loops.

  28. def sample: Option[T]

  29. def sieveCopy(x: Any): Boolean

    Should be a copy of R.

    Should be a copy of R.sieve. Used internally in Gen when some generators with suchThat-claues are created (when R is not available). This method actually breaks covariance, but since this method will only ever be called with a value of exactly type T, it is OK.

    Attributes
    protected
  30. def suchThat(f: (T) ⇒ Boolean): Gen[T]

    Create a new generator that uses this generator to produce a value that fulfills the given condition.

    Create a new generator that uses this generator to produce a value that fulfills the given condition. If the condition is not fulfilled, the generator fails (returns None). This method is identical to [Gen.filter].

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

    Definition Classes
    AnyRef
  32. def toString(): String

    Definition Classes
    AnyRef → Any
  33. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. def withFilter(p: (T) ⇒ Boolean): WithFilter

    Creates a non-strict filtered version of this generator.

  37. def |:(l: Symbol): Gen[T]

    Put a label on the generator to make test reports clearer

  38. def |:(l: String): Gen[T]

    Put a label on the generator to make test reports clearer

Inherited from AnyRef

Inherited from Any

Ungrouped