Skip to content

Commit

Permalink
Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Jul 23, 2024
1 parent b92d914 commit 227253b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/dynamo/message_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ func TestTransformAttributeValue(t *testing.T) {
actualValue, fieldType, err := transformAttributeValue(&dynamodb.AttributeValue{
BS: [][]byte{
[]byte("hello"),
[]byte("world"),
},
})
assert.NoError(t, err, err)
assert.Equal(t, [][]byte{[]byte("hello")}, actualValue)
assert.Equal(t, [][]byte{[]byte("hello"), []byte("world")}, actualValue)
assert.Equal(t, debezium.Array, fieldType)
}
{
Expand Down
6 changes: 6 additions & 0 deletions scripts/dynamo/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ func main() {
"user_id": {
S: aws.String(userID),
},
"b": {
B: []byte("hello world"),
},
"bs": {
BS: [][]byte{[]byte("hello"), []byte("world")},
},
"random_number": {
N: aws.String(fmt.Sprintf("%v", rand.Int63())), // Example number
},
Expand Down

0 comments on commit 227253b

Please sign in to comment.