2014-10-21 15:02:20 -07:00
|
|
|
package inmemory
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2015-02-10 18:14:23 -08:00
|
|
|
storagedriver "github.com/docker/distribution/registry/storage/driver"
|
|
|
|
"github.com/docker/distribution/registry/storage/driver/testsuites"
|
2014-11-17 15:44:07 -08:00
|
|
|
"gopkg.in/check.v1"
|
2014-10-21 15:02:20 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
// Hook up gocheck into the "go test" runner.
|
2014-11-17 15:44:07 -08:00
|
|
|
func Test(t *testing.T) { check.TestingT(t) }
|
2014-10-21 15:02:20 -07:00
|
|
|
|
|
|
|
func init() {
|
|
|
|
inmemoryDriverConstructor := func() (storagedriver.StorageDriver, error) {
|
2014-10-28 18:15:40 -07:00
|
|
|
return New(), nil
|
2014-10-21 15:02:20 -07:00
|
|
|
}
|
2015-06-29 16:39:45 -07:00
|
|
|
testsuites.RegisterSuite(inmemoryDriverConstructor, testsuites.NeverSkip)
|
2014-10-21 15:02:20 -07:00
|
|
|
}
|