Skip to content

Commit b2b3f25

Browse files
committed
feat(maputils): remove protobuf dependency
Signed-off-by: m-d-key <[email protected]>
1 parent 77c385c commit b2b3f25

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

go.mod

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@ require (
66
github.com/hashicorp/go-multierror v1.1.1
77
github.com/stretchr/testify v1.10.0
88
golang.org/x/text v0.23.0
9-
google.golang.org/protobuf v1.36.5
109
)
1110

1211
require (
1312
github.com/davecgh/go-spew v1.1.1 // indirect
14-
github.com/google/go-cmp v0.6.0 // indirect
1513
github.com/hashicorp/errwrap v1.1.0 // indirect
1614
github.com/kr/pretty v0.3.1 // indirect
1715
github.com/pmezard/go-difflib v1.0.0 // indirect

go.sum

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
22
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
33
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=
64
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
75
github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I=
86
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
2523
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
2624
golang.org/x/text v0.23.0 h1:D71I7dUrlY+VX0gQShAThNGHFxZ13dGLBHQLVl1mJlY=
2725
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=
3026
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
3127
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
3228
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=

pkg/maputils/maputils_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ import (
99

1010
"github.com/sassoftware/sas-ggdk/pkg/errors"
1111
"github.com/sassoftware/sas-ggdk/pkg/maputils"
12+
"github.com/sassoftware/sas-ggdk/pkg/pointer"
1213
"github.com/sassoftware/sas-ggdk/pkg/result"
1314
"github.com/stretchr/testify/require"
14-
"google.golang.org/protobuf/proto"
1515
)
1616

1717
func Test_AssertValuesNotNil(t *testing.T) {
1818
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),
2222
}
2323
err := maputils.AssertValuesNotNil(m)
2424
require.NoError(t, err)

0 commit comments

Comments
 (0)