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

Function count_test_todos

scripts/update_lib/deps.py:207–216  ·  view source on GitHub ↗

Count RustPython TODO markers in a test file/directory.

(test_name: str, lib_prefix: str)

Source from the content-addressed store, hash-verified

205
206
207def count_test_todos(test_name: str, lib_prefix: str) -> int:
208 """Count RustPython TODO markers in a test file/directory."""
209 local_dir = pathlib.Path(lib_prefix) / "test" / test_name
210 local_file = pathlib.Path(lib_prefix) / "test" / f"{test_name}.py"
211
212 if local_dir.exists():
213 return count_todo_in_path(local_dir)
214 if local_file.exists():
215 return count_todo_in_path(local_file)
216 return 0
217
218
219# === Cross-process cache using shelve ===

Callers 2

compute_test_todo_listFunction · 0.90
format_depsFunction · 0.90

Calls 2

count_todo_in_pathFunction · 0.85
existsMethod · 0.45

Tested by

no test coverage detected