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

Function split_test_packages

Lib/test/libregrtest/findtests.py:64–77  ·  view source on GitHub ↗
(tests, *, testdir: StrPath | None = None,
                        exclude: Container[str] = (),
                        split_test_dirs=SPLITTESTDIRS)

Source from the content-addressed store, hash-verified

62
63
64def split_test_packages(tests, *, testdir: StrPath | None = None,
65 exclude: Container[str] = (),
66 split_test_dirs=SPLITTESTDIRS) -> list[TestName]:
67 testdir = findtestdir(testdir)
68 splitted = []
69 for name in tests:
70 if name in split_test_dirs:
71 subdir = os.path.join(testdir, name)
72 splitted.extend(findtests(testdir=subdir, exclude=exclude,
73 split_test_dirs=split_test_dirs,
74 base_mod=name))
75 else:
76 splitted.append(name)
77 return splitted
78
79
80def _list_cases(suite: unittest.TestSuite) -> None:

Callers 1

find_testsMethod · 0.90

Calls 5

findtestdirFunction · 0.85
findtestsFunction · 0.85
joinMethod · 0.45
extendMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected