MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / print_random_test_statistics

Function print_random_test_statistics

test/runner.py:279–292  ·  view source on GitHub ↗
(num_tests)

Source from the content-addressed store, hash-verified

277
278
279def print_random_test_statistics(num_tests):
280 std = 0.5 / math.sqrt(num_tests)
281 expected = 100.0 * (1.0 - std)
282 print()
283 print('running those %d randomly-selected tests. if they all pass, then there is a '
284 'greater than 95%% chance that at least %.2f%% of the test suite will pass'
285 % (num_tests, expected))
286 print()
287
288 def show():
289 print('if all tests passed then there is a greater than 95%% chance that at least '
290 '%.2f%% of the test suite will pass'
291 % (expected))
292 atexit.register(show)
293
294
295def error_on_legacy_suite_names(args):

Callers 1

args_for_random_testsFunction · 0.85

Calls 1

printFunction · 0.50

Tested by

no test coverage detected