package ortac-runtime-qcheck-stm
Runtime support library for Ortac/QCheck-STM-generated code
Install
Dune Dependency
Authors
Maintainers
Sources
0.7.0.tar.gz
md5=1429cb7ec517060772f97504d84ff789
sha512=498e1b40dd29f5feef3df5fa54f924c7b53f24726b1613a5d8dd7ef8ca16b8cf97a76b9fd2951f32143b59a67b8d80fe13b081890fca07787a5a5fda30102a97
doc/ortac-runtime-qcheck-stm/Ortac_runtime_qcheck_stm/index.html
Module Ortac_runtime_qcheck_stm
Source
include module type of Ortac_runtime
Source
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 {
}
Source
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
Source
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
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>