Skip to content

Commit

Permalink
regen for copying ddbstreams attribute value after dropping go-cmp
Browse files Browse the repository at this point in the history
  • Loading branch information
lucix-aws committed Mar 7, 2024
1 parent 6c816bc commit 5011554
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions feature/dynamodbstreams/attributevalue/decode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions feature/dynamodbstreams/attributevalue/marshaler_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package attributevalue

import (
"fmt"
"math"
"reflect"
"testing"
Expand Down Expand Up @@ -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 ""
}
7 changes: 0 additions & 7 deletions feature/dynamodbstreams/attributevalue/shared_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
}

0 comments on commit 5011554

Please sign in to comment.