MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / check_unittest

Function check_unittest

test/qcheck.py:245–255  ·  view source on GitHub ↗
(test, predicate, generator)

Source from the content-addressed store, hash-verified

243
244
245def check_unittest(test, predicate, generator):
246 counter_examples = check(predicate, generator)
247 if counter_examples:
248 failures = len(counter_examples)
249 message = "\n".join([" -> %s" % f for f in counter_examples[:examples]])
250 message = "found %d counter examples, displaying first %d:\n%s" % (
251 failures,
252 min(failures, examples),
253 message,
254 )
255 test.fail(message)

Callers

nothing calls this directly

Calls 2

checkFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected