MCPcopy
hub / github.com/grafana/tempo / writeTenantBlocks

Function writeTenantBlocks

modules/backendscheduler/provider/compaction_test.go:398–410  ·  view source on GitHub ↗
(ctx context.Context, t *testing.T, w backend.Writer, tenant string, count int)

Source from the content-addressed store, hash-verified

396}
397
398func writeTenantBlocks(ctx context.Context, t *testing.T, w backend.Writer, tenant string, count int) {
399 var err error
400 for range count {
401 meta := &backend.BlockMeta{
402 BlockID: backend.NewUUID(),
403 TenantID: tenant,
404 Version: encoding.LatestEncoding().Version(),
405 }
406
407 err = w.WriteBlockMeta(ctx, meta)
408 require.NoError(t, err)
409 }
410}
411
412func foundMetaInMetas(metas []*backend.BlockMeta, u backend.UUID) (*backend.BlockMeta, bool) {
413 for _, m := range metas {

Calls 4

NewUUIDFunction · 0.92
LatestEncodingFunction · 0.92
VersionMethod · 0.65
WriteBlockMetaMethod · 0.65

Tested by

no test coverage detected