()
| 13 | |
| 14 | |
| 15 | def test_metrics_snapshot(): |
| 16 | m = RoutingMetrics() |
| 17 | m.record_routing(tier=0, model="test", method="direct", confidence=0.9) |
| 18 | snap = m.snapshot() |
| 19 | assert snap["total_requests"] == 1 |
| 20 | assert "avg_confidence" in snap |
| 21 | |
| 22 | |
| 23 | def test_log_entry_json(): |
nothing calls this directly
no test coverage detected