constraint
ConceptA constraint, in the constrained-random verification paradigm, is a user-defined callable (typically a Python function) registered on a randomized object to restrict the legal combinations of its random variables. Constraints consume the current values of the variables listed in their dependency tuple and return a boolean, allowing the random solver to reject or accept a proposed randomization.
WIKI
Definition
In constrained-random test generation, a constraint is a predicate that is attached to a randomized object so that the generator only produces values satisfying the predicate. Each constraint is supplied together with a tuple naming the random variables whose values are passed to it as arguments.
Mechanism in constrainedrandom
NEIGHBORHOOD
No graph connections found for this entity yet. It may appear in future ingestion runs.
explore full graph →