2014-10-21 15:02:20 -07:00
|
|
|
package inmemory
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2020-08-24 13:18:39 +02:00
|
|
|
storagedriver "github.com/distribution/distribution/v3/registry/storage/driver"
|
|
|
|
"github.com/distribution/distribution/v3/registry/storage/driver/testsuites"
|
2014-10-21 15:02:20 -07:00
|
|
|
)
|
|
|
|
|
2023-12-08 10:33:35 +08:00
|
|
|
func newDriverConstructor() (storagedriver.StorageDriver, error) {
|
|
|
|
return New(), nil
|
2023-12-08 02:00:27 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestInMemoryDriverSuite(t *testing.T) {
|
2023-12-08 10:33:35 +08:00
|
|
|
testsuites.Driver(t, newDriverConstructor)
|
2023-12-08 02:00:27 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func BenchmarkInMemoryDriverSuite(b *testing.B) {
|
2023-12-08 10:33:35 +08:00
|
|
|
testsuites.BenchDriver(b, newDriverConstructor)
|
2014-10-21 15:02:20 -07:00
|
|
|
}
|