(b *testing.B, poller *Poller, tenant string, previous *List)
| 1278 | } |
| 1279 | |
| 1280 | func benchmarkPollTenant(b *testing.B, poller *Poller, tenant string, previous *List) { |
| 1281 | b.ResetTimer() |
| 1282 | for n := 0; n < b.N; n++ { |
| 1283 | _, _, err := poller.pollTenantBlocks(context.Background(), tenant, previous) |
| 1284 | require.NoError(b, err) |
| 1285 | } |
| 1286 | } |
| 1287 | |
| 1288 | func writeNewBlocksForTenant(ctx context.Context, b *testing.B, w backend.Writer, tenant string, count int) { |
| 1289 | var ( |
no test coverage detected