MCPcopy Create free account
hub / github.com/HypothesisWorks/hypothesis / assert_no_examples

Function assert_no_examples

hypothesis/tests/common/debug.py:104–108  ·  view source on GitHub ↗
(strategy, condition=lambda _: True)

Source from the content-addressed store, hash-verified

102
103
104def assert_no_examples(strategy, condition=lambda _: True):
105 try:
106 assert_all_examples(strategy, lambda val: not condition(val))
107 except (Unsatisfiable, NoSuchExample):
108 pass
109
110
111def assert_all_examples(strategy, predicate, settings=None):

Calls 2

assert_all_examplesFunction · 0.85
conditionFunction · 0.50