2014-10-22 00:02:20 +02: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-11-18 00:44:07 +01:00
|
|
|
"gopkg.in/check.v1"
|
2014-10-22 00:02:20 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
// Hook up gocheck into the "go test" runner.
|
2014-11-18 00:44:07 +01:00
|
|
|
func Test(t *testing.T) { check.TestingT(t) }
|
2014-10-22 00:02:20 +02:00
|
|
|
|
|
|
|
func init() {
|
|
|
|
inmemoryDriverConstructor := func() (storagedriver.StorageDriver, error) {
|
2014-10-29 02:15:40 +01:00
|
|
|
return New(), nil
|
2014-10-22 00:02:20 +02:00
|
|
|
}
|
2015-06-30 01:39:45 +02:00
|
|
|
testsuites.RegisterSuite(inmemoryDriverConstructor, testsuites.NeverSkip)
|
2014-10-22 00:02:20 +02:00
|
|
|
}
|