...

Source file src/github.com/docker/distribution/registry/storage/driver/inmemory/driver_test.go

Documentation: github.com/docker/distribution/registry/storage/driver/inmemory

     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  }
    20  

View as plain text