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

Function get_crossplatform_tests

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

Source from the content-addressed store, hash-verified

167
168
169def get_crossplatform_tests(modules):
170 suites = ['core0', 'other', 'sanity'] # We don't need all versions of every test
171 crossplatform_tests = []
172 # Walk over the test suites and find the test functions with the
173 # is_crossplatform_test attribute applied by @crossplatform decorator
174 for m in modules:
175 for s in suites:
176 if hasattr(m, s):
177 testclass = getattr(m, s)
178 for funcname in dir(testclass):
179 if hasattr(getattr(testclass, funcname), 'is_crossplatform_test'):
180 crossplatform_tests.append(s + '.' + funcname)
181 return crossplatform_tests
182
183
184def tests_with_expanded_wildcards(args, all_tests):

Callers 1

mainFunction · 0.85

Calls 2

appendMethod · 0.80
getattrFunction · 0.50

Tested by

no test coverage detected