(self)
| 276 | assert rs.count == 1 |
| 277 | |
| 278 | def test_avg_latency(self) -> None: |
| 279 | rs = RouteStats(storage=InMemoryRouteStatsStorage()) |
| 280 | r1 = _make_record() |
| 281 | r1 = RouteRecord(**{**r1.__dict__, "latency_us": 100.0}) |
| 282 | r2 = _make_record() |
| 283 | r2 = RouteRecord(**{**r2.__dict__, "latency_us": 300.0}) |
| 284 | rs.record(r1) |
| 285 | rs.record(r2) |
| 286 | assert abs(rs.summary().avg_latency_us - 200.0) < 0.1 |
| 287 | |
| 288 | |
| 289 | @pytest.fixture |
nothing calls this directly
no test coverage detected