MCPcopy Index your code
hub / github.com/rilldata/rill / NewInstanceForProject

Function NewInstanceForProject

runtime/testruntime/testruntime.go:246–248  ·  view source on GitHub ↗

NewInstanceForProject creates a runtime and an instance for use in tests. The passed name should match a test project in the testdata folder. You should not do mutable repo operations on the returned instance.

(t TestingT, name string)

Source from the content-addressed store, hash-verified

244// The passed name should match a test project in the testdata folder.
245// You should not do mutable repo operations on the returned instance.
246func NewInstanceForProject(t TestingT, name string) (*runtime.Runtime, string) {
247 return newInstanceHelper(t, name, nil)
248}
249
250func NewInstanceForProjectWithConfigs(t TestingT, name string, instConfig map[string]string) (*runtime.Runtime, string) {
251 return newInstanceHelper(t, name, instConfig)

Calls 1

newInstanceHelperFunction · 0.85