package qcheck-lin

  1. Overview
  2. Docs
A multicore testing library for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.9.tar.gz
md5=ce75e64a125c5593d8e3c91752406067
sha512=cbac110fcf490a4c71229937936eb705699489d666c55938df6ce2e31d224494a92d8dc36946e24a506f1962c23d9ac10bf1c0c2685b237e111241ee0a9049b8

doc/qcheck-lin.domain/Lin_domain/Make/index.html

Module Lin_domain.MakeSource

Functor to build a module for parallel testing

Parameters

module Spec : Lin.Spec

Signature

Sourceval lin_test : count:int -> name:string -> QCheck.Test.t

lin_test ~count:c ~name:n builds a parallel test with the name n that iterates c times. The test fails if one of the generated programs is not sequentially consistent. In that case it fails, and prints a reduced counter example.

Sourceval neg_lin_test : count:int -> name:string -> QCheck.Test.t

neg_lin_test ~count:c ~name:n builds a negative parallel test with the name n that iterates c times. The test fails if no counter example is found, and succeeds if a counter example is indeed found, and prints it afterwards.

Sourceval stress_test : count:int -> name:string -> QCheck.Test.t

stress_test ~count:c ~name:n builds a parallel test with the name n that iterates c times. The test fails if an unexpected exception is raised underway. It is intended as a stress test to run operations at a high frequency and detect unexpected exceptions or crashes. It does not perform an interleaving search like lin_test and neg_lin_test.

OCaml

Innovation. Community. Security.