testctr

package
v0.0.0-...-7a277a5 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MariaDBVersion     = "10.5.27"
	MariaDBDockerImage = "mariadb:" + MariaDBVersion
)

Variables

This section is empty.

Functions

func MariaDBContainer

func MariaDBContainer(ctx context.Context, database, username, password string) (
	ctr testcontainers.Container,
	cleanup func(),
	port int32,
	err error,
)

MariaDBContainer creates and runs a MariaDB TestContainer.

If there is an error on startup, this function will terminate the TestContainer before returning. After calling this function, the caller must be sure to defer cleanup, e.g. by `t.Cleanup(cleanup)`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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