ed5d493405
This commit apply the following suggestions: 1. https://github.com/distribution/distribution/pull/4185#discussion_r1419694460 2. https://github.com/distribution/distribution/pull/4185#discussion_r1419697921 3. https://github.com/distribution/distribution/pull/4185#discussion_r1419699112 4. https://github.com/distribution/distribution/pull/4185#discussion_r1419702609 Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
20 lines
483 B
Go
20 lines
483 B
Go
package inmemory
|
|
|
|
import (
|
|
"testing"
|
|
|
|
storagedriver "github.com/distribution/distribution/v3/registry/storage/driver"
|
|
"github.com/distribution/distribution/v3/registry/storage/driver/testsuites"
|
|
)
|
|
|
|
func newDriverConstructor() (storagedriver.StorageDriver, error) {
|
|
return New(), nil
|
|
}
|
|
|
|
func TestInMemoryDriverSuite(t *testing.T) {
|
|
testsuites.Driver(t, newDriverConstructor)
|
|
}
|
|
|
|
func BenchmarkInMemoryDriverSuite(b *testing.B) {
|
|
testsuites.BenchDriver(b, newDriverConstructor)
|
|
}
|