pgtestcontainer

package
v0.27.1 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	testcontainers.Container
	DatabaseURL string
}

Container wraps a testcontainer running Postgres.

func New

func New(t *testing.T) Container

New creates and starts a new Postgres testcontainer. Call Terminate() when done using it.

func (Container) Terminate

func (c Container) Terminate(t *testing.T)

Terminate stops and removes the container.

Jump to

Keyboard shortcuts

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