github.com/mika/distribution@v2.2.2-0.20160108133430-a75790e3d8e0+incompatible/registry/storage/driver/inmemory/driver_test.go (about) 1 package inmemory 2 3 import ( 4 "testing" 5 6 storagedriver "github.com/docker/distribution/registry/storage/driver" 7 "github.com/docker/distribution/registry/storage/driver/testsuites" 8 "gopkg.in/check.v1" 9 ) 10 11 // Hook up gocheck into the "go test" runner. 12 func Test(t *testing.T) { check.TestingT(t) } 13 14 func init() { 15 inmemoryDriverConstructor := func() (storagedriver.StorageDriver, error) { 16 return New(), nil 17 } 18 testsuites.RegisterSuite(inmemoryDriverConstructor, testsuites.NeverSkip) 19 }