(ctx context.Context, t *testing.T, w backend.Writer, tenant string, count int)
| 310 | } |
| 311 | |
| 312 | func writeTenantBlocks(ctx context.Context, t *testing.T, w backend.Writer, tenant string, count int) []backend.UUID { |
| 313 | var ( |
| 314 | err error |
| 315 | blockIDs []backend.UUID |
| 316 | ) |
| 317 | |
| 318 | for range count { |
| 319 | meta := &backend.BlockMeta{ |
| 320 | BlockID: backend.NewUUID(), |
| 321 | TenantID: tenant, |
| 322 | Version: encoding.DefaultEncoding().Version(), |
| 323 | } |
| 324 | |
| 325 | blockIDs = append(blockIDs, meta.BlockID) |
| 326 | |
| 327 | err = w.WriteBlockMeta(ctx, meta) |
| 328 | require.NoError(t, err) |
| 329 | } |
| 330 | |
| 331 | return blockIDs |
| 332 | } |
| 333 | |
| 334 | type ownsEverythingSharder struct{} |
| 335 |
no test coverage detected