suite

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 17 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.TDataSourceInstance,
	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.TDataSourceInstance,
	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.TDataSourceInstance)

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],
)

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) *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 State

type State struct {
	EndpointDeterminer *docker_compose.EndpointDeterminer
}

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

func NewState

func NewState() (*State, error)

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