(t *testing.T)
| 328 | } |
| 329 | |
| 330 | func TestStatsTracker_UpdateStatsBatchEmptyNoop(t *testing.T) { |
| 331 | tracker := New() |
| 332 | ctx := context.Background() |
| 333 | |
| 334 | tracker.UpdateStatsBatch(nil) |
| 335 | tracker.UpdateStatsBatch([]Sample{}) |
| 336 | |
| 337 | resp := tracker.GetUsersStats(ctx, false) |
| 338 | if len(resp.Stats) != 0 { |
| 339 | t.Fatalf("expected 0 stats after empty batch updates, got %d", len(resp.Stats)) |
| 340 | } |
| 341 | } |
nothing calls this directly
no test coverage detected