MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / test_reset

Method test_reset

tests/test_stats.py:221–227  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

219 assert len(rs.history(limit=3)) == 3
220
221 def test_reset(self) -> None:
222 rs = RouteStats(storage=InMemoryRouteStatsStorage())
223 rs.record(_make_record())
224 rs.record(_make_record())
225 rs.reset()
226 assert rs.count == 0
227 assert rs.summary().total_requests == 0
228
229 def test_persistence_roundtrip(self) -> None:
230 storage = InMemoryRouteStatsStorage()

Callers

nothing calls this directly

Calls 6

recordMethod · 0.95
resetMethod · 0.95
summaryMethod · 0.95
RouteStatsClass · 0.90
_make_recordFunction · 0.85

Tested by

no test coverage detected