test_resources

package
v0.0.0-...-11943fb Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Now

func Now() core.Now

func UUID

func UUID() core.UUID

Types

type PostgresResource

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

func NewPostgresContainer

func NewPostgresContainer(ctx context.Context, pool *dockertest.Pool, migrationsPath string) (PostgresResource, *dockertest.Resource, error)

func (*PostgresResource) NewDB

func (pr *PostgresResource) NewDB(t *testing.T, ctx context.Context) *pgxpool.Pool

Jump to

Keyboard shortcuts

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