package qcheck-stm

  1. Overview
  2. Docs
State-machine testing library for sequential and parallel model-based tests

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.9.tar.gz
md5=ce75e64a125c5593d8e3c91752406067
sha512=cbac110fcf490a4c71229937936eb705699489d666c55938df6ce2e31d224494a92d8dc36946e24a506f1962c23d9ac10bf1c0c2685b237e111241ee0a9049b8

doc/qcheck-stm.thread/STM_thread/MakeExt/index.html

Module STM_thread.MakeExtSource

Parameters

module Spec : STM.SpecExt

Signature

Sourceexception ThreadNotFinished
Sourceval arb_cmds_triple : int -> int -> (Spec.cmd list * Spec.cmd list * Spec.cmd list) QCheck.arbitrary

arb_cmds_triple seq_len conc_len generates a cmd triple with at most seq_len sequential commands and at most conc_len concurrent commands each. All cmds are generated with Spec.arb_cmd. arb_cmds_triple catches and ignores generation-time exceptions arising from Spec.next_state.

Sourceval interp_sut_res : Spec.sut -> Spec.cmd list -> (Spec.cmd * STM.res) list

interp_sut_res sut cs interprets the commands cs over the system sut and returns the list of corresponding Spec.cmd and result pairs.

Sourceval agree_prop_conc : (Spec.cmd list * Spec.cmd list * Spec.cmd list) -> bool

Concurrent agreement property based on Thread

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

Concurrent agreement test based on Thread which combines repeat and ~retries

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

A negative agreement test (for convenience). Accepts two labeled parameters: count is the test count and name is the printed test name.

OCaml

Innovation. Community. Security.