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

Function tenantExists

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

Source from the content-addressed store, hash-verified

144}
145
146func tenantExists(t *testing.T, tenant string, r backend.RawReader) {
147 tenants, err := r.List(context.Background(), backend.KeyPath{})
148 require.NoError(t, err)
149 require.Len(t, tenants, 1)
150 require.Equal(t, tenant, tenants[0])
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})

Calls 3

ListMethod · 0.65
LenMethod · 0.65
EqualMethod · 0.45

Tested by

no test coverage detected