2015-02-11 03:14:23 +01:00
|
|
|
package inmemory
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
storagedriver "github.com/docker/distribution/registry/storage/driver"
|
|
|
|
"github.com/docker/distribution/registry/storage/driver/testsuites"
|
|
|
|
"gopkg.in/check.v1"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Hook up gocheck into the "go test" runner.
|
|
|
|
func Test(t *testing.T) { check.TestingT(t) }
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
inmemoryDriverConstructor := func() (storagedriver.StorageDriver, error) {
|
|
|
|
return New(), nil
|
|
|
|
}
|
2015-06-30 01:39:45 +02:00
|
|
|
testsuites.RegisterSuite(inmemoryDriverConstructor, testsuites.NeverSkip)
|
2015-02-11 03:14:23 +01:00
|
|
|
}
|