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

Function get_all_tests

test/runner.py:157–166  ·  view source on GitHub ↗
(modules)

Source from the content-addressed store, hash-verified

155
156
157def get_all_tests(modules):
158 # Create a list of all known tests so that we can choose from them based on a wildcard search
159 all_tests = []
160 suites = passing_core_test_modes + misc_test_modes
161 for m in modules:
162 for s in suites:
163 if hasattr(m, s):
164 tests = [t for t in dir(getattr(m, s)) if t.startswith('test_')]
165 all_tests += [s + '.' + t for t in tests]
166 return all_tests
167
168
169def get_crossplatform_tests(modules):

Callers 1

mainFunction · 0.85

Calls 1

getattrFunction · 0.50

Tested by

no test coverage detected