Documentation ¶
Index ¶
- func DeleteFiles(t testing.TB, rt *runtime.Runtime, id string, files ...string)
- func DumpResources(t testing.TB, rt *runtime.Runtime, id string)
- func Must[T any](v T, err error) T
- func New(t TestingT) *runtime.Runtime
- func NewInstance(t TestingT) (*runtime.Runtime, string)
- func NewInstanceForProject(t TestingT, name string) (*runtime.Runtime, string)
- func NewInstanceWithModel(t TestingT, name, sql string) (*runtime.Runtime, string)
- func NewInstanceWithOptions(t TestingT, opts InstanceOptions) (*runtime.Runtime, string)
- func PutFiles(t testing.TB, rt *runtime.Runtime, id string, files map[string]string)
- func ReconcileAndWait(t testing.TB, rt *runtime.Runtime, id string, n *runtimev1.ResourceName)
- func ReconcileParserAndWait(t testing.TB, rt *runtime.Runtime, id string)
- func RefreshAndWait(t testing.TB, rt *runtime.Runtime, id string, n *runtimev1.ResourceName)
- func RenameFile(t testing.TB, rt *runtime.Runtime, id, from, to string)
- func RequireIsView(t testing.TB, olap drivers.OLAPStore, tableName string, isView bool)
- func RequireNoOLAPTable(t testing.TB, rt *runtime.Runtime, id, name string)
- func RequireOLAPTable(t testing.TB, rt *runtime.Runtime, id, name string)
- func RequireOLAPTableCount(t testing.TB, rt *runtime.Runtime, id, name string, count int)
- func RequireParseErrors(t testing.TB, rt *runtime.Runtime, id string, ...)
- func RequireReconcileState(t testing.TB, rt *runtime.Runtime, id string, ...)
- func RequireResource(t testing.TB, rt *runtime.Runtime, id string, a *runtimev1.Resource)
- type InstanceOptions
- type TestingT
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteFiles ¶ added in v0.35.0
func DumpResources ¶ added in v0.35.0
func NewInstance ¶
NewInstance is a convenience wrapper around NewInstanceWithOptions, using defaults sensible for most tests.
func NewInstanceForProject ¶
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.
func NewInstanceWithModel ¶
NewInstanceWithModel creates a runtime and an instance for use in tests. The passed model name and SQL SELECT statement will be loaded into the instance.
func NewInstanceWithOptions ¶ added in v0.35.0
func NewInstanceWithOptions(t TestingT, opts InstanceOptions) (*runtime.Runtime, string)
NewInstanceWithOptions creates a runtime and an instance for use in tests. The instance's repo is a temp directory that will be cleared when the tests finish.
func ReconcileAndWait ¶ added in v0.35.0
func ReconcileParserAndWait ¶ added in v0.35.0
func RefreshAndWait ¶ added in v0.35.0
func RenameFile ¶ added in v0.36.0
func RequireIsView ¶ added in v0.36.0
func RequireNoOLAPTable ¶ added in v0.35.0
func RequireOLAPTable ¶ added in v0.35.0
func RequireOLAPTableCount ¶ added in v0.35.0
func RequireParseErrors ¶ added in v0.36.0
func RequireReconcileState ¶ added in v0.35.0
Types ¶
type InstanceOptions ¶ added in v0.35.0
type InstanceOptions struct { Files map[string]string Variables map[string]string WatchRepo bool StageChanges bool ModelDefaultMaterialize bool ModelMaterializeDelaySeconds uint32 }
InstanceOptions enables configuration of the instance options that are configurable in tests.