func (s *MySuite) TestAPISuite(c *C) { create := func() drivers.Driver { _, _, store := Start(1000000, 3*time.Hour) return store } drivers.APITestSuite(c, create) }
func (s *MySuite) TestAPISuite(c *C) { create := func() drivers.Driver { store, err := NewDriver(1000000, 3*time.Hour) c.Check(err, IsNil) return store } drivers.APITestSuite(c, create) }
func (s *MySuite) TestAPISuite(c *C) { var storageList []string create := func() drivers.Driver { path, err := ioutil.TempDir(os.TempDir(), "minio-fs-") c.Check(err, IsNil) storageList = append(storageList, path) _, _, store := Start(path) return store } drivers.APITestSuite(c, create) defer removeRoots(c, storageList) }
func (s *MySuite) TestAPISuite(c *C) { var storageList []string create := func() drivers.Driver { var paths []string p, err := ioutil.TempDir(os.TempDir(), "minio-donut-") c.Check(err, IsNil) storageList = append(storageList, p) paths = append(paths, p) store, err := NewDriver(paths, 1000000, 3*time.Hour) c.Check(err, IsNil) return store } drivers.APITestSuite(c, create) removeRoots(c, storageList) }