(t *testing.T)
| 161 | } |
| 162 | |
| 163 | func 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 | |
| 179 | func TestCompactedMetaFileName(t *testing.T) { |
| 180 | // WithoutPrefix |
nothing calls this directly
no test coverage detected