2015-05-20 17:12:40 -07:00
|
|
|
package memory
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2020-08-24 13:18:39 +02:00
|
|
|
"github.com/distribution/distribution/v3/registry/storage/cache/cachecheck"
|
2015-05-20 17:12:40 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
// TestInMemoryBlobInfoCache checks the in memory implementation is working
|
|
|
|
// correctly.
|
|
|
|
func TestInMemoryBlobInfoCache(t *testing.T) {
|
2022-07-12 17:42:48 -07:00
|
|
|
cachecheck.CheckBlobDescriptorCache(t, NewInMemoryBlobDescriptorCacheProvider(UnlimitedSize))
|
2015-05-20 17:12:40 -07:00
|
|
|
}
|