MCPcopy Create free account
hub / github.com/WebAssembly/wabt / FindTestFiles

Function FindTestFiles

test/run-tests.py:698–710  ·  view source on GitHub ↗
(ext, filter_pattern_re, exclude_dirs)

Source from the content-addressed store, hash-verified

696
697
698def FindTestFiles(ext, filter_pattern_re, exclude_dirs):
699 tests = []
700 for root, dirs, files in os.walk(TEST_DIR):
701 for ex in exclude_dirs:
702 if ex in dirs:
703 # Filtering out dirs here causes os.walk not to descend into them
704 dirs.remove(ex)
705 for f in files:
706 path = os.path.join(root, f)
707 if os.path.splitext(f)[1] == ext:
708 tests.append(os.path.relpath(path, REPO_ROOT_DIR))
709 tests.sort()
710 return [test for test in tests if re.match(filter_pattern_re, test)]
711
712
713def GetAllTestInfo(test_names, status):

Callers 1

mainFunction · 0.85

Calls 4

joinMethod · 0.80
sortMethod · 0.80
appendMethod · 0.45
matchMethod · 0.45

Tested by

no test coverage detected