testutils

package
v0.0.0-...-6f0d568 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DbSetup

type DbSetup struct {
	Container testcontainers.Container
	Pool      *pgxpool.Pool
	ConnStr   string
	Error     error
}

func SetupTestDatabase

func SetupTestDatabase(ctx context.Context) DbSetup

func (*DbSetup) Close

func (t *DbSetup) Close(ctx context.Context, duration *time.Duration)

type ExecStruct

type ExecStruct struct {
	Cmd []string
}

func (ExecStruct) AsCommand

func (e ExecStruct) AsCommand() []string

func (ExecStruct) Options

func (e ExecStruct) Options() []testcontainers.ExecOptions

Jump to

Keyboard shortcuts

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