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

Function TestRootPath

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

Source from the content-addressed store, hash-verified

193}
194
195func TestRootPath(t *testing.T) {
196 // WithoutPrefix
197 b := uuid.New()
198 tid := tenantID
199 prefix := ""
200 rootPath := RootPath(b, tid, prefix)
201
202 assert.Equal(t, tid+"/"+b.String(), rootPath)
203
204 // WithPrefix
205 prefix = storagePrefix
206 rootPath = RootPath(b, tid, prefix)
207
208 assert.Equal(t, prefix+"/"+tid+"/"+b.String(), rootPath)
209}
210
211func TestRoundTripMeta(t *testing.T) {
212 // RoundTrip with empty DedicatedColumns

Callers

nothing calls this directly

Calls 3

RootPathFunction · 0.85
EqualMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected