Spec
class in io.proptastic
class Spec<S>A TLA+ spec a stateful test follows, from spec(…): every state TLC reached and every step
between them, read from its -dump dot,actionlabels file. The graph keeps a history
variable, last = <<"Reserve", B>>, so each step says which it is and for what: a step the
code takes must reach the state the spec’s step for it reaches, and a step that changes nothing
is allowed only where the spec has no such step. io.proptastic.tla.Followed adds it to a
spec written without it. A state outside the constants the spec was checked with left the model:
counted, and the rest of that run isn’t checked.
With no graph beside the spec, as the build writes none for a spec with more states than a graph worth committing, it’s followed by TLC traces: once the runs are done, each distinct step they took goes to TLC, which judges it at the constants the spec’s config sets.
Parameters
<S> | the state the steps are taken on |
|---|