testutils

package
v0.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertInCatalogStore

func AssertInCatalogStore(t *testing.T, s *catalog.Service, name, sourcePath string) *drivers.CatalogEntry

func AssertMigration

func AssertMigration(
	t *testing.T,
	result *catalog.ReconcileResult,
	errCount int,
	addCount int,
	updateCount int,
	dropCount int,
	affectedPaths []string,
)

func AssertTable

func AssertTable(t *testing.T, s *catalog.Service, name, sourcePath string)

func AssertTableAbsence

func AssertTableAbsence(t *testing.T, s *catalog.Service, name string)

func CopyFileToData added in v0.17.0

func CopyFileToData(t *testing.T, dir, source, name string)

func CreateMetricsView

func CreateMetricsView(t *testing.T, s *catalog.Service, metricsView *runtimev1.MetricsView, sourcePath string) string

func CreateModel

func CreateModel(t *testing.T, s *catalog.Service, name, sql, sourcePath string) string

func CreateSource

func CreateSource(t *testing.T, s *catalog.Service, name, file, sourcePath string) string

func RenameFile

func RenameFile(t *testing.T, dir, from, to string)

func ToProtoStruct added in v0.17.0

func ToProtoStruct(obj map[string]any) *structpb.Struct

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL