// SetupTestTable sets up a table that will have random characters
// appended to the table name to avoid conflicts between tests with the same table name
SetupTestTable sets up a table that will have random characters
appended to the table name to avoid conflicts between tests with the same table name
// SetupTestTable sets up a table that will have random characters // appended to the table name to avoid conflicts between tests with the same table name
func SetupTestTable(parentCtx context.Context, t *testing.T, tableName string, schema Schema) (string, *dynamodb.DynamoDB) {
	t.Helper()
	ctx, cancel := context.WithTimeout(parentCtx, 30*time.Second)
	defer cancel()
	endpoint := endpoint()
	db := setupDynamoSession(t, endpoint)
	table := setupDynamoTable(ctx, t, db, tableName, schema)
	return table, db
}
func SetupTestTable ( parentCtx context . Context , t * testing . T , tableName string , schema Schema ) ( string , * dynamodb . DynamoDB ) { t . Helper ( ) ctx , cancel := context . WithTimeout ( parentCtx , 30 * time . Second ) defer cancel ( ) endpoint := endpoint ( ) db := setupDynamoSession ( t , endpoint ) table := setupDynamoTable ( ctx , t , db , tableName , schema ) return table , db }
SetupTestTable sets up a table that will have random characters
appended to the table name to avoid conflicts between tests with the same table name
SetupTestTable sets up a table that will have random characters appended to the table name to avoid conflicts between tests with the same table name