Find tests referencing a symbol. Returns list of test dicts.
(symbol: str, file: str, limit: int = 20)
| 442 | |
| 443 | |
| 444 | def tests(symbol: str, file: str, limit: int = 20): |
| 445 | """Find tests referencing a symbol. Returns list of test dicts.""" |
| 446 | state = _load_state() |
| 447 | result = _safe_get(state, "/symbols/tests", {"symbol": symbol, "file": file, "limit": limit}) |
| 448 | print(json.dumps(result, indent=2)) |
| 449 | return result |
| 450 | |
| 451 | |
| 452 | def grep(pattern: str, max_matches: int = 50, scope: str = "all", file: str | None = None): |
nothing calls this directly
no test coverage detected