Skip to content
This repository has been archived by the owner on Jun 18, 2022. It is now read-only.

groupme/dynamodbtest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dynamodbtest

Package for testing golang programs that use DynamoDB.

Install

$ go get github.com/groupme/dynamodbtest

Usage

package foo

import "github.com/groupme/dynamodbtest"

func TestFoo(t *testing.T) {
	// Log output to aid debugging
	dynamodbtest.LogOutput = true

	// Start a new test process
	db, err := dynamodbtest.New()
	if err != nil {
		t.Fatal(err)
	}
	defer db.Close()

	// Choice of client is up to you, but you will need to point it at db.URL
	client := NewDynamoClient(...)
	client.URL = db.URL()
}

About

Test package for DynamoDB Local

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages