dynamotestutils

package
v1.5.50 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestTableName

func NewTestTableName(t *testing.T) string

Types

type DynamodbTestContext added in v1.5.19

type DynamodbTestContext struct {
	T      *testing.T
	Ctx    context.Context
	Cfg    aws.Config
	Client *dynamodb.Client
	Table  string
}

func NewTestContext added in v1.5.19

func NewTestContext(ctx context.Context, t *testing.T) *DynamodbTestContext

func (*DynamodbTestContext) EqualContent added in v1.5.19

func (d *DynamodbTestContext) EqualContent(ctx context.Context, wantItems []map[string]types.AttributeValue) (bool, error)

func (*DynamodbTestContext) Got added in v1.5.19

func (*DynamodbTestContext) Must added in v1.5.19

func (d *DynamodbTestContext) Must(err error)

func (*DynamodbTestContext) MustBool added in v1.5.19

func (d *DynamodbTestContext) MustBool(value bool, err error) bool

func (*DynamodbTestContext) Subtest added in v1.5.19

func (*DynamodbTestContext) WithDbContent added in v1.5.19

func (d *DynamodbTestContext) WithDbContent(ctx context.Context, entries []map[string]types.AttributeValue) error

Jump to

Keyboard shortcuts

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