sealed class PropFromFun extends Prop
Helper class to satisfy ScalaJS compilation. Do not use this directly, use Prop.apply
instead.
- Source
- Prop.scala
- Alphabetic
- By Inheritance
- PropFromFun
- Prop
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new PropFromFun(f: (Parameters) => Result)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- 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.
- Definition Classes
- Prop
- 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.
- Definition Classes
- Prop
- 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
- Definition Classes
- Prop
- 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
- Definition Classes
- Prop
- 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.
- Definition Classes
- Prop
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def ==>(p: => Prop): Prop
Combines two properties through implication
Combines two properties through implication
- Definition Classes
- Prop
- def apply(prms: Parameters): Result
- Definition Classes
- PropFromFun → Prop
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- 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) }
- Definition Classes
- Prop
- 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.
- Definition Classes
- Prop
- 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.
- Definition Classes
- Prop
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def combine(p: => Prop)(f: (Result, Result) => Result): Prop
- Definition Classes
- Prop
- def contramap(f: (Parameters) => Parameters): Prop
- Definition Classes
- Prop
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def flatMap(f: (Result) => Prop): Prop
- Definition Classes
- Prop
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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
- Definition Classes
- Prop
- 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.- Definition Classes
- Prop
- def map(f: (Result) => Result): Prop
- Definition Classes
- Prop
- 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 synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- Prop → AnyRef → Any
- def useSeed(seed: Seed): Prop
- Definition Classes
- Prop
- def viewSeed(name: String): Prop
- Definition Classes
- Prop
- 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()
- 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
- Definition Classes
- Prop
- 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
- Definition Classes
- Prop
- 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.
- Definition Classes
- Prop