Count RustPython TODO markers in a test file/directory.
(test_name: str, lib_prefix: str)
| 205 | |
| 206 | |
| 207 | def 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 === |
no test coverage detected