package qcheck-lin

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

Install

Dune Dependency

Authors

Maintainers

Sources

0.8.tar.gz
md5=8e7634814a61bf765ac6989f7fdc49cb
sha512=dfa53117ecbf2e466f6ecddfa91d8eb63a3156fe9e1c5a68fd0da26a4c810312581d9ace4c00c4ab1947614f7fb1d6b686003a09da418d2940ac79a7b744a8eb

doc/qcheck-lin.effect/Lin_effect/Make/index.html

Module Lin_effect.MakeSource

Functor to build a module for Effect-based testing

  • alert experimental This module is experimental: The interface is not considered stable, and it may fail to trigger concurrency issues that are present.

Parameters

module Spec : Lin.Spec

Signature

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

lin_test ~count:c ~name:n builds an Stdlib.Effect-based 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 Stdlib.Effect-based 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.

OCaml

Innovation. Community. Security.