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

Function _get_local_test_path

scripts/update_lib/deps.py:171–175  ·  view source on GitHub ↗

Return the local Lib/test path matching a CPython test path.

(
    cpython_test_path: pathlib.Path, lib_prefix: str
)

Source from the content-addressed store, hash-verified

169
170
171def _get_local_test_path(
172 cpython_test_path: pathlib.Path, lib_prefix: str
173) -> pathlib.Path:
174 """Return the local Lib/test path matching a CPython test path."""
175 return pathlib.Path(lib_prefix) / "test" / cpython_test_path.name
176
177
178def is_test_tracked(test_name: str, cpython_prefix: str, lib_prefix: str) -> bool:

Callers 3

is_test_trackedFunction · 0.85
is_test_up_to_dateFunction · 0.85
get_test_last_updatedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected