Trait/Object

org.scalacheck

Prop

Related Docs: object Prop | package scalacheck

Permalink

trait Prop extends AnyRef

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Prop
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def apply(prms: Parameters): Result

    Permalink

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def &&(p: ⇒ Prop): Prop

    Permalink

    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.

  4. def ++(p: ⇒ Prop): Prop

    Permalink

    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.

  5. def :|(l: Symbol): Prop

    Permalink

    Put a label on the property to make test reports clearer

  6. def :|(l: String): Prop

    Permalink

    Put a label on the property to make test reports clearer

  7. def ==(p: ⇒ Prop): Prop

    Permalink

    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.

  8. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def ==>(p: ⇒ Prop): Prop

    Permalink

    Combines two properties through implication

  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. def check(paramFun: (Parameters) ⇒ Parameters): Unit

    Permalink

    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. 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)
    }
  12. def check: Unit

    Permalink

    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. The default test parameters (Test.Parameters.default) are used for the check.

  13. def check(prms: Parameters): Unit

    Permalink

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

  14. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. def combine(p: Prop)(f: (Result, Result) ⇒ Result): Prop

    Permalink
  16. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  18. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def flatMap(f: (Result) ⇒ Prop): Prop

    Permalink
  20. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    Any
  23. def label(l: String): Prop

    Permalink

    Put a label on the property to make test reports clearer

  24. def main(args: Array[String]): Unit

    Permalink

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

  25. def mainCallsExit: Boolean

    Permalink

    Whether main should call System.exit with an exit code.

    Whether main should call System.exit with an exit code. Defaults to true; override to change.

  26. def mainRunner(args: Array[String]): Int

    Permalink

    The logic for main, separated out to make it easier to avoid System.exit calls.

    The logic for main, separated out to make it easier to avoid System.exit calls. Returns exit code.

  27. def map(f: (Result) ⇒ Result): Prop

    Permalink
  28. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  32. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. def |:(l: Symbol): Prop

    Permalink

    Put a label on the property to make test reports clearer

  37. def |:(l: String): Prop

    Permalink

    Put a label on the property to make test reports clearer

  38. def ||(p: ⇒ Prop): Prop

    Permalink

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

Deprecated Value Members

  1. def check(minSuccessfulTests: Int): Unit

    Permalink

    Convenience method that checks this property with specified minimal number of successful test and reports the result on the console.

    Convenience method that checks this property with specified minimal number of successful test and reports the result on the console. If you need to get the results from the test use the check methods in org.scalacheck.Test instead.

    Annotations
    @deprecated
    Deprecated

    (Since version 1.11.2) Use check(_.withMinSuccessfulTests(n)) instead

  2. def check(minSuccessfulTests: Int, prms: Parameters): Unit

    Permalink

    Convenience method that checks this property with specified minimal number of successful test and the given testing parameters, and reports the result on the console.

    Convenience method that checks this property with specified minimal number of successful test and the given testing parameters, and reports the result on the console. If you need to get the results from the test use the check methods in org.scalacheck.Test instead.

    Annotations
    @deprecated
    Deprecated

    (Since version 1.11.2) Use check(prms.withMinSuccessfulTests(n)) instead

Inherited from AnyRef

Inherited from Any

Ungrouped