Package for testing golang programs that use DynamoDB.
$ go get github.com/groupme/dynamodbtest
package foo
import"github.com/groupme/dynamodbtest"funcTestFoo(t*testing.T) {
// Log output to aid debuggingdynamodbtest.LogOutput=true// Start a new test processdb, err:=dynamodbtest.New()
iferr!=nil {
t.Fatal(err)
}
deferdb.Close()
// Choice of client is up to you, but you will need to point it at db.URLclient:=NewDynamoClient(...)
client.URL=db.URL()
}