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

Function test_metrics_reset

tests/test_observability.py:38–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36
37
38def test_metrics_reset():
39 m = RoutingMetrics()
40 m.record_routing(tier=0, model="test", method="direct", confidence=0.9)
41 m.reset()
42 assert m.total_requests == 0

Callers

nothing calls this directly

Calls 3

record_routingMethod · 0.95
resetMethod · 0.95
RoutingMetricsClass · 0.90

Tested by

no test coverage detected