(t *testing.T)
| 193 | } |
| 194 | |
| 195 | func 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 | |
| 211 | func TestRoundTripMeta(t *testing.T) { |
| 212 | // RoundTrip with empty DedicatedColumns |