test

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(endpoint string) *dynamodb.Client

NewClient builds a DynamoDB client pointed at the given local endpoint with dummy static credentials.

Types

type TestEnv

type TestEnv struct {
	Pool     *dockertest.Pool
	Client   *dynamodb.Client
	Endpoint string
}

TestEnv is a running dynamodb-local container with a connected client.

func NewTestEnv

func NewTestEnv() (*TestEnv, error)

NewTestEnv starts a dynamodb-local Docker container and returns a connected client. It mirrors the postgres test harness.

Jump to

Keyboard shortcuts

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