MCPcopy Index your code
hub / github.com/RustPython/RustPython / get_test_files

Function get_test_files

extra_tests/test_snippets.py:89–97  ·  view source on GitHub ↗

Retrieve test files

()

Source from the content-addressed store, hash-verified

87
88
89def get_test_files():
90 """Retrieve test files"""
91 for test_type, test_dir in TEST_DIRS.items():
92 for filepath in sorted(glob.iglob(os.path.join(test_dir, "*.py"))):
93 filename = os.path.split(filepath)[1]
94 if filename.startswith("xfail_"):
95 continue
96
97 yield test_type, os.path.abspath(filepath)
98
99
100def generate_slices(path):

Callers 1

wrapperFunction · 0.70

Calls 5

sortedFunction · 0.85
itemsMethod · 0.45
joinMethod · 0.45
splitMethod · 0.45
startswithMethod · 0.45

Tested by

no test coverage detected