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 "" -}