(ts: float, call: str = "search", snippet_chars: int = 1_000, file_chars: int = 20_000)
| 13 | |
| 14 | |
| 15 | def _make_stats_record(ts: float, call: str = "search", snippet_chars: int = 1_000, file_chars: int = 20_000) -> str: |
| 16 | return json.dumps({"ts": ts, "call": call, "results": 3, "snippet_chars": snippet_chars, "file_chars": file_chars}) |
| 17 | |
| 18 | |
| 19 | def test_save_search_stats(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None: |
no outgoing calls
no test coverage detected