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

Method test_empty_summary

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

Source from the content-addressed store, hash-verified

67
68class TestRouteStats:
69 def test_empty_summary(self) -> None:
70 rs = RouteStats(storage=InMemoryRouteStatsStorage())
71 s = rs.summary()
72 assert s.total_requests == 0
73 assert s.by_tier == {}
74 assert s.avg_confidence == 0.0
75
76 def test_record_and_count(self) -> None:
77 rs = RouteStats(storage=InMemoryRouteStatsStorage())

Callers

nothing calls this directly

Calls 3

summaryMethod · 0.95
RouteStatsClass · 0.90

Tested by

no test coverage detected