MCPcopy
hub / github.com/MinishLab/semble / _make_stats_record

Function _make_stats_record

tests/test_stats.py:15–16  ·  view source on GitHub ↗
(ts: float, call: str = "search", snippet_chars: int = 1_000, file_chars: int = 20_000)

Source from the content-addressed store, hash-verified

13
14
15def _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
19def test_save_search_stats(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:

Calls

no outgoing calls

Tested by

no test coverage detected