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

Function args_for_random_tests

test/runner.py:227–240  ·  view source on GitHub ↗
(args, modules)

Source from the content-addressed store, hash-verified

225
226
227def args_for_random_tests(args, modules):
228 if not args:
229 return args
230 first = args[0]
231 if first.startswith('random'):
232 random_arg = first[6:]
233 num_tests, base_module, relevant_modes = get_random_test_parameters(random_arg)
234 for m in modules:
235 if hasattr(m, base_module):
236 base = getattr(m, base_module)
237 new_args = choose_random_tests(base, num_tests, relevant_modes)
238 print_random_test_statistics(num_tests)
239 return new_args
240 return args
241
242
243def get_random_test_parameters(arg):

Callers 1

mainFunction · 0.85

Calls 4

choose_random_testsFunction · 0.85
getattrFunction · 0.50

Tested by

no test coverage detected