testing

package
v0.0.5-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToPtr

func ToPtr[T any](v T) *T

Types

type CockroachContainer

type CockroachContainer struct {
	testcontainers.Container
	URI string // Connection URI
}

func SetupCockroach

func SetupCockroach(t *testing.T) *CockroachContainer

type PostgresContainer

type PostgresContainer struct {
	testcontainers.Container
	URI      string
	Username string
	Password string
	Database string
	Port     string
}

func SetupPostgres

func SetupPostgres(t *testing.T) *PostgresContainer

Jump to

Keyboard shortcuts

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