Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Ortac_runtime_qcheck_stm
Sourceinclude module type of Ortac_runtime
type error =
| Violated_axiom
| Axiom_failure of {
}
| Violated_invariant of {
term : string;
position : term_kind;
}
| Violated_condition of {
term : string;
term_kind : term_kind;
}
| Specification_failure of {
term : string;
term_kind : term_kind;
exn : exn;
}
| Unexpected_exception of {
}
| Uncaught_checks of {
}
| Unexpected_checks of {
}
type expected_result =
| Value of STM.res
The value has been computed
*)| Protected_value of STM.res
The value has been computed but is protected as it could have been an exception
*)| Exception of string
An exception is expected
*)| Out_of_domain
The computation of the expected returned value called a Gospel function out of its domain
*)This type carries the expected value computed from the Gospel specification if possible.
Information for the bug report in case of test failure
val report :
string ->
string ->
expected_result ->
string ->
(string * location) list ->
report
report module_name init_sut ret cmd terms
append a b
appends the violated terms of a
and b
if any in the returned report