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

Method test_record_and_count

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

Source from the content-addressed store, hash-verified

74 assert s.avg_confidence == 0.0
75
76 def test_record_and_count(self) -> None:
77 rs = RouteStats(storage=InMemoryRouteStatsStorage())
78 rs.record(_make_record())
79 rs.record(_make_record(tier="COMPLEX", model="google/gemini-3.1-pro"))
80 assert rs.count == 2
81
82 def test_summary_by_tier(self) -> None:
83 rs = RouteStats(storage=InMemoryRouteStatsStorage())

Callers

nothing calls this directly

Calls 4

recordMethod · 0.95
RouteStatsClass · 0.90
_make_recordFunction · 0.85

Tested by

no test coverage detected