org.scalacheck

Test

object Test

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

Type Members

  1. sealed case class Failed(args: Args, labels: Set[String]) extends Status with Product with Serializable

    The property was proved wrong with the given concrete arguments.

  2. sealed case class GenException(e: Throwable) extends Status with Product with Serializable

    An exception was raised when trying to generate concrete arguments for evaluating the property.

  3. case class Params(minSuccessfulTests: Int = 100, maxDiscardedTests: Int = 500, minSize: Int = 0, maxSize: Int = ..., rng: Random = ..., workers: Int = 1, testCallback: TestCallback = ...) extends Product with Serializable

    Test parameters

  4. sealed case class PropException(args: Args, e: Throwable, labels: Set[String]) extends Status with Product with Serializable

    An exception was raised when trying to evaluate the property with the given concrete arguments.

  5. sealed case class Proved(args: Args) extends Status with Product with Serializable

    ScalaCheck managed to prove the property correct

  6. case class Result(status: Status, succeeded: Int, discarded: Int, freqMap: FM, time: Long = 0) extends Product with Serializable

    Test statistics

  7. sealed trait Status extends AnyRef

    Test status

  8. trait TestCallback extends AnyRef

  9. type NamedPropEvalCallback = (String, Int, Int) ⇒ Unit

    Property evaluation callback.

    Property evaluation callback. Takes property name, and number of passed and discarded tests, respectively

    Annotations
    @deprecated
    Deprecated

    (Since version 1.8) (v1.8)

  10. type PropEvalCallback = (Int, Int) ⇒ Unit

    Property evaluation callback.

    Property evaluation callback. Takes number of passed and discarded tests, respectively

    Annotations
    @deprecated
    Deprecated

    (Since version 1.8) (v1.8)

  11. type TestResCallback = (String, Result) ⇒ Unit

    Test callback.

    Test callback. Takes property name, and test results.

    Annotations
    @deprecated
    Deprecated

    (Since version 1.8) (v1.8)

Value Members

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

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

    Definition Classes
    Any
  3. final def ##(): Int

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

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

    Definition Classes
    Any
  6. object Exhausted extends Status with Product with Serializable

    The property test was exhausted, it wasn't possible to generate enough concrete arguments satisfying the preconditions to get enough passing property evaluations.

  7. object Passed extends Status with Product with Serializable

    ScalaCheck found enough cases for which the property holds, so the property is considered correct.

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def check(prms: Params, p: Prop): Result

    Tests a property with the given testing parameters, and returns the test results.

  10. def checkProperties(prms: Params, ps: Properties): Seq[(String, Result)]

  11. def clone(): AnyRef

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

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

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

    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    AnyRef
  22. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def check(p: Prop): Result

    Tests a property and prints results to the console

    Tests a property and prints results to the console

    Annotations
    @deprecated
    Deprecated

    (Since version 1.8) Use check(Params(testCallback = ConsoleReporter()), p) instead.

  2. def check(p: Prop, maxDiscarded: Int): Result

    Tests a property and prints results to the console.

    Tests a property and prints results to the console. The maxDiscarded parameter specifies how many discarded tests that should be allowed before ScalaCheck

    Annotations
    @deprecated
    Deprecated

    (Since version 1.8) Use check(Params(maxDiscardedTests = n, testCallback = ConsoleReporter()), p) instead.

  3. def check(prms: Params, p: Prop, propCallb: (Int, Int) ⇒ Unit): Result

    Annotations
    @deprecated
    Deprecated

    (Since version 1.8) Use check(prms.copy(testCallback = myCallback), p) instead

  4. def checkProperties(ps: Properties): Seq[(String, Result)]

    Tests all properties with default testing parameters, and returns the test results.

    Tests all properties with default testing parameters, and returns the test results. The results are also printed on the console during testing.

    Annotations
    @deprecated
    Deprecated

    (Since version 1.8) Use checkProperties(Params(), ps) instead.

  5. def checkProperties(ps: Properties, prms: Params): Seq[(String, Result)]

    Tests all properties with the given testing parameters, and returns the test results.

    Tests all properties with the given testing parameters, and returns the test results.

    Annotations
    @deprecated
    Deprecated

    (Since version 1.8) Use checkProperties(prms, ps) instead

  6. def checkProperties(ps: Properties, prms: Params, propCallb: (String, Int, Int) ⇒ Unit, testCallb: (String, Result) ⇒ Unit): Seq[(String, Result)]

    Tests all properties with the given testing parameters, and returns the test results.

    Tests all properties with the given testing parameters, and returns the test results. f is a function which is called each time a property is evaluted. g is a function called each time a property has been fully tested.

    Annotations
    @deprecated
    Deprecated

    (Since version 1.8) Use checkProperties(prms.copy(testCallback = myCallback), ps) instead.

  7. val defaultParams: Params

    Default testing parameters

    Default testing parameters

    Annotations
    @deprecated
    Deprecated

    (Since version 1.8) Use Test.Params() instead

Inherited from AnyRef

Inherited from Any

Ungrouped