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)
| 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. |
| 246 | func NewInstanceForProject(t TestingT, name string) (*runtime.Runtime, string) { |
| 247 | return newInstanceHelper(t, name, nil) |
| 248 | } |
| 249 | |
| 250 | func NewInstanceForProjectWithConfigs(t TestingT, name string, instConfig map[string]string) (*runtime.Runtime, string) { |
| 251 | return newInstanceHelper(t, name, instConfig) |