forked from TrueCloudLab/distribution
20 lines
538 B
Go
20 lines
538 B
Go
package inmemory
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/docker/docker-registry/storagedriver"
|
|
"github.com/docker/docker-registry/storagedriver/testsuites"
|
|
. "gopkg.in/check.v1"
|
|
)
|
|
|
|
// Hook up gocheck into the "go test" runner.
|
|
func Test(t *testing.T) { TestingT(t) }
|
|
|
|
func init() {
|
|
inmemoryDriverConstructor := func() (storagedriver.StorageDriver, error) {
|
|
return NewDriver(), nil
|
|
}
|
|
testsuites.RegisterInProcessSuite(inmemoryDriverConstructor, testsuites.NeverSkip)
|
|
testsuites.RegisterIPCSuite("inmemory", nil, testsuites.NeverSkip)
|
|
}
|