File tree 3 files changed +10
-9
lines changed
feature/dynamodbstreams/attributevalue
3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -951,7 +951,7 @@ func TestCustomDecodeSAndDefaultDecodeN(t *testing.T) {
951
951
}
952
952
expectedValue := A {
953
953
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
955
955
}
956
956
957
957
var actualValue A
@@ -985,7 +985,7 @@ func TestCustomDecodeNAndDefaultDecodeS(t *testing.T) {
985
985
}
986
986
expectedValue := A {
987
987
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
989
989
}
990
990
991
991
var actualValue A
Original file line number Diff line number Diff line change 1
1
package attributevalue
2
2
3
3
import (
4
+ "fmt"
4
5
"math"
5
6
"reflect"
6
7
"testing"
@@ -708,3 +709,10 @@ func Test_Encode_YAML_TagKey(t *testing.T) {
708
709
709
710
compareObjects (t , expected , actual )
710
711
}
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
+ }
Original file line number Diff line number Diff line change @@ -424,10 +424,3 @@ func ptrToValue(in interface{}) interface{} {
424
424
}
425
425
return v .Interface ()
426
426
}
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
- }
You can’t perform that action at this time.
0 commit comments