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