tests

package
v1.50.5 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithTestDependancies

func WithTestDependancies(t *testing.T,
	options []*testdef.DependancyOption,
	testFn func(t *testing.T, db *testdef.DependancyOption))

WithTestDependancies Creates subtests with each known DependancyOption.

Types

type FrameBaseTestSuite

type FrameBaseTestSuite struct {
	suite.Suite

	MigrationImageContext string
	Network               *testcontainers.DockerNetwork
	Resources             []testdef.TestResource
	Ctrl                  *gomock.Controller
}

FrameBaseTestSuite provides a base test suite with all necessary test components.

func (*FrameBaseTestSuite) Migrate added in v1.50.3

func (*FrameBaseTestSuite) SetupSuite

func (s *FrameBaseTestSuite) SetupSuite()

SetupSuite initialises the test environment for the test suite.

func (*FrameBaseTestSuite) TearDownSuite

func (s *FrameBaseTestSuite) TearDownSuite()

TearDownSuite cleans up resources after all tests are completed.

type StdoutLogConsumer

type StdoutLogConsumer struct {
	// contains filtered or unexported fields
}

StdoutLogConsumer is a LogConsumer that prints the log to stdout.

func NewStdoutLogConsumer

func NewStdoutLogConsumer(ctx context.Context) *StdoutLogConsumer

NewStdoutLogConsumer creates a new StdoutLogConsumer.

func (*StdoutLogConsumer) Accept

func (lc *StdoutLogConsumer) Accept(l testcontainers.Log)

Accept prints the log to stdout.

Directories

Path Synopsis
deps

Jump to

Keyboard shortcuts

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