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

Function TestMetaFileName

tempodb/backend/raw_test.go:163–177  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

161}
162
163func TestMetaFileName(t *testing.T) {
164 // WithoutPrefix
165 b := uuid.New()
166 tid := tenantID
167 prefix := ""
168 metaFilename := MetaFileName(b, tid, prefix)
169
170 assert.Equal(t, tid+"/"+b.String()+"/"+MetaName, metaFilename)
171
172 // WithPrefix
173 prefix = storagePrefix
174 metaFilename = MetaFileName(b, tid, prefix)
175
176 assert.Equal(t, prefix+"/"+tid+"/"+b.String()+"/"+MetaName, metaFilename)
177}
178
179func TestCompactedMetaFileName(t *testing.T) {
180 // WithoutPrefix

Callers

nothing calls this directly

Calls 3

MetaFileNameFunction · 0.85
EqualMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected