PropFromFun

org.scalacheck.PropFromFun
sealed class PropFromFun(f: Parameters => Result) extends Prop

Helper class to satisfy ScalaJS compilation. Do not use this directly, use Prop.apply instead.

Attributes

Source
Prop.scala
Graph
Supertypes
class Prop
trait Serializable
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def apply(prms: Parameters): Result

Attributes

Source
Prop.scala

Inherited methods

def &&(p: => Prop): Prop

Returns a new property that holds if and only if both this and the given property hold.

Returns a new property that holds if and only if both this and the given property hold. If one of the properties doesn't generate a result, the new property will generate false.

Attributes

Inherited from:
Prop
Source
Prop.scala
def ++(p: => Prop): Prop

Returns a new property that holds if and only if both this and the given property hold.

Returns a new property that holds if and only if both this and the given property hold. If one of the properties doesn't generate a result, the new property will generate the same result as the other property.

Attributes

Inherited from:
Prop
Source
Prop.scala
def :|(l: Symbol): Prop

Put a label on the property to make test reports clearer

Put a label on the property to make test reports clearer

Attributes

Inherited from:
Prop
Source
Prop.scala
def :|(l: String): Prop

Put a label on the property to make test reports clearer

Put a label on the property to make test reports clearer

Attributes

Inherited from:
Prop
Source
Prop.scala
def ==(p: => Prop): Prop

Returns a new property that holds if and only if both this and the given property generates a result with the exact same status.

Returns a new property that holds if and only if both this and the given property generates a result with the exact same status. Note that this means that if one of the properties is proved, and the other one passed, then the resulting property will fail.

Attributes

Inherited from:
Prop
Source
Prop.scala
def ==>(p: => Prop): Prop

Combines two properties through implication

Combines two properties through implication

Attributes

Inherited from:
Prop
Source
Prop.scala
def check(paramFun: Parameters => Parameters): Unit

Convenience method that checks this property and reports the result on the console.

Convenience method that checks this property and reports the result on the console. Should only be used when running tests interactively within the Scala REPL.

The provided argument should be a function that takes the default test parameters (Test.Parameters.default) as input and outputs a modified Test.Parameters instance that Example use:

p.check(_.withMinSuccessfulTests(500))

p.check { _.
  withMinSuccessfulTests(80000).
  withWorkers(4)
}

Attributes

Inherited from:
Prop
Source
Prop.scala
def check(): Unit

Convenience method that checks this property and reports the result on the console.

Convenience method that checks this property and reports the result on the console. Should only be used when running tests interactively within the Scala REPL.

The default test parameters (Test.Parameters.default) are used for the check.

Attributes

Inherited from:
Prop
Source
Prop.scala
def check(prms: Parameters): Unit

Convenience method that checks this property with the given parameters and reports the result on the console.

Convenience method that checks this property with the given parameters and reports the result on the console. Should only be used when running tests interactively within the Scala REPL.

Attributes

Inherited from:
Prop
Source
Prop.scala
def combine(p: => Prop)(f: (Result, Result) => Result): Prop

Attributes

Inherited from:
Prop
Source
Prop.scala

Attributes

Inherited from:
Prop
Source
Prop.scala
def flatMap(f: Result => Prop): Prop

Attributes

Inherited from:
Prop
Source
Prop.scala
def label(l: String): Prop

Put a label on the property to make test reports clearer

Put a label on the property to make test reports clearer

Attributes

Inherited from:
Prop
Source
Prop.scala
def main(args: Array[String]): Unit

Convenience method that makes it possible to use this property as an application that checks itself on execution.

Convenience method that makes it possible to use this property as an application that checks itself on execution. Calls System.exit with a non-zero exit code if the property check fails.

Attributes

Inherited from:
Prop
Source
Prop.scala
def map(f: Result => Result): Prop

Attributes

Inherited from:
Prop
Source
Prop.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Prop -> Any
Inherited from:
Prop
Source
Prop.scala
def useSeed(seed: Seed): Prop

Attributes

Inherited from:
Prop
Source
Prop.scala
def viewSeed(name: String): Prop

Attributes

Inherited from:
Prop
Source
Prop.scala
def |:(l: Symbol): Prop

Put a label on the property to make test reports clearer

Put a label on the property to make test reports clearer

Attributes

Inherited from:
Prop
Source
Prop.scala
def |:(l: String): Prop

Put a label on the property to make test reports clearer

Put a label on the property to make test reports clearer

Attributes

Inherited from:
Prop
Source
Prop.scala
def ||(p: => Prop): Prop

Returns a new property that holds if either this or the given property (or both) hold.

Returns a new property that holds if either this or the given property (or both) hold.

Attributes

Inherited from:
Prop
Source
Prop.scala

Deprecated and Inherited methods

def useSeed(name: String, seed: Seed): Prop

Attributes

Deprecated
[Since version 1.18.0] Please use useSeed which only takes a seed. name is, and has been, unused.
Inherited from:
Prop
Source
Prop.scala