suite

package
v0.0.0-...-35a4376 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GlobalTestSuite

type GlobalTestSuite struct {
	suite.Suite
	// contains filtered or unexported fields
}

func NewGlobalTestSuite

func NewGlobalTestSuite(t *testing.T, opts ...Option) *GlobalTestSuite

func (*GlobalTestSuite) Containers

func (s *GlobalTestSuite) Containers() []testcontainers.Container

func (*GlobalTestSuite) Context

func (s *GlobalTestSuite) Context() context.Context

func (*GlobalTestSuite) Logger

func (s *GlobalTestSuite) Logger() log.Logger

func (*GlobalTestSuite) Services

func (s *GlobalTestSuite) Services() []service.Service

func (*GlobalTestSuite) SetupSuite

func (s *GlobalTestSuite) SetupSuite()

func (*GlobalTestSuite) TearDownSuite

func (s *GlobalTestSuite) TearDownSuite()

type Option

type Option func(suite *GlobalTestSuite) error

func WithContextTimeoutSuiteOption

func WithContextTimeoutSuiteOption(timeout time.Duration) Option

func WithDockerSetupSuiteOption

func WithDockerSetupSuiteOption(containersInit ...docker.ContainerOption) Option

func WithLoggerSuiteOption

func WithLoggerSuiteOption(logger log.Logger) Option

func WithServiceSetupSuiteOption

func WithServiceSetupSuiteOption(
	servicePorts []string,
	serviceInits ...service_test.ServiceInit,
) Option

func WithSetupFunctionSuiteOption

func WithSetupFunctionSuiteOption(setupFunction func() error) Option

Jump to

Keyboard shortcuts

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