package qcheck-lin

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Lin.MakeCmdSource

Functor to map a combinator-based module signature description into a raw Lin description. This functor is exposed for internal uses only, its API may change at any time.

Parameters

module Spec : Spec

Signature

Sourcetype t

The type of the system under test

Sourcetype cmd

The type of commands

Sourceval show_cmd : cmd -> string

show_cmd c returns a string representing the command c.

Sourceval gen_cmd : cmd QCheck.Gen.t

A command generator.

Sourceval shrink_cmd : cmd QCheck.Shrink.t

A command shrinker. To a first approximation you can use QCheck.Shrink.nil.

Sourcetype res

The command result type

Sourceval show_res : res -> string

show_res r returns a string representing the result r.

Sourceval equal_res : res -> res -> bool

equality function over res

Sourceval init : unit -> t

Initialize the system under test.

Sourceval cleanup : t -> unit

Utility function to clean up t after each test instance, e.g., for closing sockets, files, or resetting global parameters

Sourceval run : cmd -> t -> res

run c t should interpret the command c over the system under test t (typically side-effecting).

OCaml

Innovation. Community. Security.