From 50115544c73020c47a488909b56b547b68626d12 Mon Sep 17 00:00:00 2001 From: Luc Talatinian Date: Thu, 7 Mar 2024 12:37:55 -0500 Subject: [PATCH] regen for copying ddbstreams attribute value after dropping go-cmp --- feature/dynamodbstreams/attributevalue/decode_test.go | 4 ++-- feature/dynamodbstreams/attributevalue/marshaler_test.go | 8 ++++++++ feature/dynamodbstreams/attributevalue/shared_test.go | 7 ------- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/feature/dynamodbstreams/attributevalue/decode_test.go b/feature/dynamodbstreams/attributevalue/decode_test.go index 82a7e9ec08e..fb5ea599f48 100644 --- a/feature/dynamodbstreams/attributevalue/decode_test.go +++ b/feature/dynamodbstreams/attributevalue/decode_test.go @@ -951,7 +951,7 @@ func TestCustomDecodeSAndDefaultDecodeN(t *testing.T) { } expectedValue := A{ TimeFieldS: time.Unix(120, 0).UTC(), - TimeFieldN: time.Unix(123, 0), // will use system locale + TimeFieldN: time.Unix(123, 0), // will use system's locale } var actualValue A @@ -985,7 +985,7 @@ func TestCustomDecodeNAndDefaultDecodeS(t *testing.T) { } expectedValue := A{ TimeFieldS: time.Unix(123, 10000000).UTC(), - TimeFieldN: time.Unix(123, 10000000), // will use system locale + TimeFieldN: time.Unix(123, 10000000), // will use system's locale } var actualValue A diff --git a/feature/dynamodbstreams/attributevalue/marshaler_test.go b/feature/dynamodbstreams/attributevalue/marshaler_test.go index 6ab440c6628..abf0484891b 100644 --- a/feature/dynamodbstreams/attributevalue/marshaler_test.go +++ b/feature/dynamodbstreams/attributevalue/marshaler_test.go @@ -1,6 +1,7 @@ package attributevalue import ( + "fmt" "math" "reflect" "testing" @@ -708,3 +709,10 @@ func Test_Encode_YAML_TagKey(t *testing.T) { compareObjects(t, expected, actual) } + +func cmpDiff(e, a interface{}) string { + if !reflect.DeepEqual(e, a) { + return fmt.Sprintf("%v != %v", e, a) + } + return "" +} diff --git a/feature/dynamodbstreams/attributevalue/shared_test.go b/feature/dynamodbstreams/attributevalue/shared_test.go index 86f3bb42b74..3a3721db420 100644 --- a/feature/dynamodbstreams/attributevalue/shared_test.go +++ b/feature/dynamodbstreams/attributevalue/shared_test.go @@ -424,10 +424,3 @@ func ptrToValue(in interface{}) interface{} { } return v.Interface() } - -func cmpDiff(e, a interface{}) string { - if !reflect.DeepEqual(e, a) { - return fmt.Sprintf("%v != %v", e, a) - } - return "" -}