File tree Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,10 @@ require (
6
6
github.com/hashicorp/go-multierror v1.1.1
7
7
github.com/stretchr/testify v1.10.0
8
8
golang.org/x/text v0.23.0
9
- google.golang.org/protobuf v1.36.5
10
9
)
11
10
12
11
require (
13
12
github.com/davecgh/go-spew v1.1.1 // indirect
14
- github.com/google/go-cmp v0.6.0 // indirect
15
13
github.com/hashicorp/errwrap v1.1.0 // indirect
16
14
github.com/kr/pretty v0.3.1 // indirect
17
15
github.com/pmezard/go-difflib v1.0.0 // indirect
Original file line number Diff line number Diff line change 1
1
github.com/creack/pty v1.1.9 /go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E =
2
2
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c =
3
3
github.com/davecgh/go-spew v1.1.1 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
4
- github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI =
5
- github.com/google/go-cmp v0.6.0 /go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY =
6
4
github.com/hashicorp/errwrap v1.0.0 /go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4 =
7
5
github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I =
8
6
github.com/hashicorp/errwrap v1.1.0 /go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4 =
@@ -25,8 +23,6 @@ github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOf
25
23
github.com/stretchr/testify v1.10.0 /go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY =
26
24
golang.org/x/text v0.23.0 h1:D71I7dUrlY+VX0gQShAThNGHFxZ13dGLBHQLVl1mJlY =
27
25
golang.org/x/text v0.23.0 /go.mod h1:/BLNzu4aZCJ1+kcD0DNRotWKage4q2rGVAg4o22unh4 =
28
- google.golang.org/protobuf v1.36.5 h1:tPhr+woSbjfYvY6/GPufUoYizxw1cF/yFoxJ2fmpwlM =
29
- google.golang.org/protobuf v1.36.5 /go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE =
30
26
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 /go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0 =
31
27
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk =
32
28
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c /go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q =
Original file line number Diff line number Diff line change @@ -9,16 +9,16 @@ import (
9
9
10
10
"github.com/sassoftware/sas-ggdk/pkg/errors"
11
11
"github.com/sassoftware/sas-ggdk/pkg/maputils"
12
+ "github.com/sassoftware/sas-ggdk/pkg/pointer"
12
13
"github.com/sassoftware/sas-ggdk/pkg/result"
13
14
"github.com/stretchr/testify/require"
14
- "google.golang.org/protobuf/proto"
15
15
)
16
16
17
17
func Test_AssertValuesNotNil (t * testing.T ) {
18
18
m := map [string ]* int32 {
19
- `small` : proto . Int32 (10 ),
20
- `medium` : proto . Int32 (20 ),
21
- `large` : proto . Int32 (30 ),
19
+ `small` : pointer. Ptr [ int32 ] (10 ),
20
+ `medium` : pointer. Ptr [ int32 ] (20 ),
21
+ `large` : pointer. Ptr [ int32 ] (30 ),
22
22
}
23
23
err := maputils .AssertValuesNotNil (m )
24
24
require .NoError (t , err )
You can’t perform that action at this time.
0 commit comments