forked from TrueCloudLab/distribution
6acb3a0d7e
The "testing" package adds some flags in its init function, so utilities that import distribution code may print a page of extra testing flags in their help output. This commit solves the issue by moving an import of "testing" in the registry/storage/cache package to a new registry/storage/cache/cachecheck package, which is only imported by tests. Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
13 lines
329 B
Go
13 lines
329 B
Go
package memory
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/docker/distribution/registry/storage/cache/cachecheck"
|
|
)
|
|
|
|
// TestInMemoryBlobInfoCache checks the in memory implementation is working
|
|
// correctly.
|
|
func TestInMemoryBlobInfoCache(t *testing.T) {
|
|
cachecheck.CheckBlobDescriptorCache(t, NewInMemoryBlobDescriptorCacheProvider())
|
|
}
|