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

Function blockExists

tempodb/backend/local/local_test.go:153–158  ·  view source on GitHub ↗
(t *testing.T, blockID backend.UUID, tenant string, r backend.RawReader)

Source from the content-addressed store, hash-verified

151}
152
153func blockExists(t *testing.T, blockID backend.UUID, tenant string, r backend.RawReader) {
154 blocks, err := r.List(context.Background(), backend.KeyPath{tenant})
155 require.NoError(t, err)
156 require.Len(t, blocks, 1)
157 require.Equal(t, blockID.String(), blocks[0])
158}

Calls 4

ListMethod · 0.65
LenMethod · 0.65
EqualMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected