api/datastore/teststore.go
Function NewTestStore
has 5 return statements (exceeds 4 allowed). Open
Open
func NewTestStore(t testing.TB, init, secure bool) (bool, *Store, func(), error) {
// Creates unique temp directory in a concurrency friendly manner.
storePath := t.TempDir()
fileService, err := filesystem.NewService(storePath, "")