(tenantCount, blockCount int)
| 1333 | } |
| 1334 | |
| 1335 | func newPerTenant(tenantCount, blockCount int) PerTenant { |
| 1336 | var ( |
| 1337 | perTenant = make(PerTenant, tenantCount) |
| 1338 | metas []*backend.BlockMeta |
| 1339 | id string |
| 1340 | tenant string |
| 1341 | ) |
| 1342 | for i := 0; i < tenantCount; i++ { |
| 1343 | tenant = fmt.Sprintf("tenant-%d", i) |
| 1344 | metas = newBlockMetas(blockCount, tenant) |
| 1345 | id = randString(5) |
| 1346 | perTenant[id] = metas |
| 1347 | } |
| 1348 | |
| 1349 | return perTenant |
| 1350 | } |
| 1351 | |
| 1352 | func newPerTenantCompacted(tenantCount, blockCount int) PerTenantCompacted { |
| 1353 | perTenantCompacted := make(PerTenantCompacted) |
no test coverage detected