Skip to content

Commit 5011554

Browse files
committed
regen for copying ddbstreams attribute value after dropping go-cmp
1 parent 6c816bc commit 5011554

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

feature/dynamodbstreams/attributevalue/decode_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,7 @@ func TestCustomDecodeSAndDefaultDecodeN(t *testing.T) {
951951
}
952952
expectedValue := A{
953953
TimeFieldS: time.Unix(120, 0).UTC(),
954-
TimeFieldN: time.Unix(123, 0), // will use system locale
954+
TimeFieldN: time.Unix(123, 0), // will use system's locale
955955
}
956956

957957
var actualValue A
@@ -985,7 +985,7 @@ func TestCustomDecodeNAndDefaultDecodeS(t *testing.T) {
985985
}
986986
expectedValue := A{
987987
TimeFieldS: time.Unix(123, 10000000).UTC(),
988-
TimeFieldN: time.Unix(123, 10000000), // will use system locale
988+
TimeFieldN: time.Unix(123, 10000000), // will use system's locale
989989
}
990990

991991
var actualValue A

feature/dynamodbstreams/attributevalue/marshaler_test.go

+8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package attributevalue
22

33
import (
4+
"fmt"
45
"math"
56
"reflect"
67
"testing"
@@ -708,3 +709,10 @@ func Test_Encode_YAML_TagKey(t *testing.T) {
708709

709710
compareObjects(t, expected, actual)
710711
}
712+
713+
func cmpDiff(e, a interface{}) string {
714+
if !reflect.DeepEqual(e, a) {
715+
return fmt.Sprintf("%v != %v", e, a)
716+
}
717+
return ""
718+
}

feature/dynamodbstreams/attributevalue/shared_test.go

-7
Original file line numberDiff line numberDiff line change
@@ -424,10 +424,3 @@ func ptrToValue(in interface{}) interface{} {
424424
}
425425
return v.Interface()
426426
}
427-
428-
func cmpDiff(e, a interface{}) string {
429-
if !reflect.DeepEqual(e, a) {
430-
return fmt.Sprintf("%v != %v", e, a)
431-
}
432-
return ""
433-
}

0 commit comments

Comments
 (0)