suite

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestInvalidLogin added in v0.2.14

func TestInvalidLogin[ID test_utils.TableIDTypes, IDBUILDER test_utils.ArrowIDBuilder[ID]](
	s *Base[ID, IDBUILDER],
	dsiSrc *api_common.TGenericDataSourceInstance,
	table *test_utils.Table[ID, IDBUILDER],
)

func TestInvalidPassword added in v0.2.14

func TestInvalidPassword[ID test_utils.TableIDTypes, IDBUILDER test_utils.ArrowIDBuilder[ID]](
	s *Base[ID, IDBUILDER],
	dsiSrc *api_common.TGenericDataSourceInstance,
	table *test_utils.Table[ID, IDBUILDER],
)

func TestMissingDataSource added in v0.2.13

func TestMissingDataSource[
	ID test_utils.TableIDTypes,
	IDBUILDER test_utils.ArrowIDBuilder[ID],
](s *Base[ID, IDBUILDER], dsi *api_common.TGenericDataSourceInstance)

func TestPositiveStats added in v0.2.13

func TestPositiveStats[ID test_utils.TableIDTypes, IDBUILDER test_utils.ArrowIDBuilder[ID]](
	s *Base[ID, IDBUILDER],
	dataSource *datasource.DataSource,
	table *test_utils.Table[ID, IDBUILDER],
)

func TestUnsupportedPushdownFilteringMandatory added in v0.5.11

func TestUnsupportedPushdownFilteringMandatory[ID test_utils.TableIDTypes, IDBUILDER test_utils.ArrowIDBuilder[ID]](
	s *Base[ID, IDBUILDER],
	dsi *api_common.TGenericDataSourceInstance,
	table *test_utils.Table[ID, IDBUILDER],
	predicate *api_service_protos.TPredicate,
)

Types

type Base

type Base[ID test_utils.TableIDTypes, IDBUILDER test_utils.ArrowIDBuilder[ID]] struct {
	testify_suite.Suite
	*State
	Connector common.TestingServer
	// contains filtered or unexported fields
}

func NewBase

func NewBase[
	ID test_utils.TableIDTypes,
	IDBUILDER test_utils.ArrowIDBuilder[ID],
](t *testing.T, state *State, name string, suiteOptions ...BaseOption) *Base[ID, IDBUILDER]

func (*Base[_, _]) BeforeSuite

func (b *Base[_, _]) BeforeSuite(_ string)

func (*Base[_, _]) BeforeTest

func (b *Base[_, _]) BeforeTest(_, testName string)

func (*Base[_, _]) SetupSuite

func (b *Base[_, _]) SetupSuite()

func (*Base[_, _]) TearDownSuite

func (b *Base[_, _]) TearDownSuite()

func (*Base[_, _]) TearDownTest

func (b *Base[_, _]) TearDownTest()

func (*Base[ID, IDBUILDER]) ValidateTable

func (b *Base[ID, IDBUILDER]) ValidateTable(
	ds *datasource.DataSource,
	table *test_utils.Table[ID, IDBUILDER],
	customOptions ...ValidateTableOption,
)

type BaseOption added in v0.5.11

type BaseOption interface {
	// contains filtered or unexported methods
}

func WithEmbeddedOptions added in v0.5.11

func WithEmbeddedOptions(options ...server.EmbeddedOption) BaseOption

type State

type State struct {
	EndpointDeterminer *docker_compose.EndpointDeterminer
	// contains filtered or unexported fields
}

Global-scope services and objects that will be accessible from every test suite during the testing lifecycle

func NewState

func NewState() (*State, error)

func (*State) SkipSuiteIfNotEnabled added in v0.5.12

func (s *State) SkipSuiteIfNotEnabled(t *testing.T)

type ValidateTableOption

type ValidateTableOption interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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