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

Function get_test_last_updated

scripts/update_lib/deps.py:1239–1249  ·  view source on GitHub ↗

Get the last git commit date for a test's files.

(
    test_name: str, cpython_prefix: str, lib_prefix: str
)

Source from the content-addressed store, hash-verified

1237
1238
1239def get_test_last_updated(
1240 test_name: str, cpython_prefix: str, lib_prefix: str
1241) -> str | None:
1242 """Get the last git commit date for a test's files."""
1243 cpython_path = _get_cpython_test_path(test_name, cpython_prefix)
1244 if cpython_path is None:
1245 return None
1246 local_path = _get_local_test_path(cpython_path, lib_prefix)
1247 if not local_path.exists():
1248 return None
1249 return _lookup_last_updated([str(local_path)], lib_prefix)
1250
1251
1252def get_test_dependencies(

Callers 1

format_all_todoFunction · 0.90

Calls 5

_get_cpython_test_pathFunction · 0.85
_get_local_test_pathFunction · 0.85
_lookup_last_updatedFunction · 0.85
strFunction · 0.85
existsMethod · 0.45

Tested by

no test coverage detected