diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f4e280c..12b626d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,7 +22,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: 1.18 + go-version: 1.21 - name: Build run: go build -o build/protoc-gen-go-grpcmock ./cmd/protoc-gen-go-grpcmock diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b45cb36..a5a4da5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,11 +17,11 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: 1.18 + go-version: 1.21 - name: Run GoReleaser uses: goreleaser/goreleaser-action@v4 with: args: release --rm-dist env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index c92e0c4..7066af8 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ $ VERSION=$(curl -fsSL https://github.com/lovoo/protoc-gen-go-grpcmock/releases/ $ curl -fsSL "https://github.com/lovoo/protoc-gen-go-grpcmock/releases/download/${VERSION}/protoc-gen-go-grpcmock_${VERSION:1}_$(uname -s)_$(uname -m).tar.gz" | tar -xzC /usr/local/bin protoc-gen-go-grpcmock ``` -Or build the `protoc-gen-go-grpcmock` binary from source (requires Go 1.18+). +Or build the `protoc-gen-go-grpcmock` binary from source (requires Go 1.21+). ``` $ git clone https://github.com/lovoo/protoc-gen-go-grpcmock && cd protoc-gen-go-grpcmock @@ -52,4 +52,4 @@ Examples can be found in the [examples](./examples) directory. ## License -The MIT License (MIT). Please see [LICENSE](LICENSE) for more information. \ No newline at end of file +The MIT License (MIT). Please see [LICENSE](LICENSE) for more information. diff --git a/examples/routeguide/pegomock/route_guide_grpc_mock.pb.go b/examples/routeguide/pegomock/route_guide_grpc_mock.pb.go index 8ef925b..b2f8d6d 100644 --- a/examples/routeguide/pegomock/route_guide_grpc_mock.pb.go +++ b/examples/routeguide/pegomock/route_guide_grpc_mock.pb.go @@ -2611,54 +2611,6 @@ func (c *MockRouteGuide_RouteChatServer_Send_OngoingVerification) GetAllCaptured return } -func AnyPtrToRouteguidePoint() *Point { - pegomock.RegisterMatcher(pegomock.NewAnyMatcher(reflect.TypeOf((*(*Point))(nil)).Elem())) - var nullValue *Point - return nullValue -} - -func EqPtrToRouteguidePoint(value *Point) *Point { - pegomock.RegisterMatcher(&pegomock.EqMatcher{Value: value}) - var nullValue *Point - return nullValue -} - -func NotEqPtrToRouteguidePoint(value *Point) *Point { - pegomock.RegisterMatcher(&pegomock.NotEqMatcher{Value: value}) - var nullValue *Point - return nullValue -} - -func PtrToRouteguidePointThat(matcher pegomock.ArgumentMatcher) *Point { - pegomock.RegisterMatcher(matcher) - var nullValue *Point - return nullValue -} - -func AnyPtrToRouteguideRouteSummary() *RouteSummary { - pegomock.RegisterMatcher(pegomock.NewAnyMatcher(reflect.TypeOf((*(*RouteSummary))(nil)).Elem())) - var nullValue *RouteSummary - return nullValue -} - -func EqPtrToRouteguideRouteSummary(value *RouteSummary) *RouteSummary { - pegomock.RegisterMatcher(&pegomock.EqMatcher{Value: value}) - var nullValue *RouteSummary - return nullValue -} - -func NotEqPtrToRouteguideRouteSummary(value *RouteSummary) *RouteSummary { - pegomock.RegisterMatcher(&pegomock.NotEqMatcher{Value: value}) - var nullValue *RouteSummary - return nullValue -} - -func PtrToRouteguideRouteSummaryThat(matcher pegomock.ArgumentMatcher) *RouteSummary { - pegomock.RegisterMatcher(matcher) - var nullValue *RouteSummary - return nullValue -} - func AnyPtrToRouteguideFeature() *Feature { pegomock.RegisterMatcher(pegomock.NewAnyMatcher(reflect.TypeOf((*(*Feature))(nil)).Elem())) var nullValue *Feature @@ -2683,75 +2635,75 @@ func PtrToRouteguideFeatureThat(matcher pegomock.ArgumentMatcher) *Feature { return nullValue } -func AnyRouteguideRouteGuideListFeaturesClient() RouteGuide_ListFeaturesClient { - pegomock.RegisterMatcher(pegomock.NewAnyMatcher(reflect.TypeOf((*(RouteGuide_ListFeaturesClient))(nil)).Elem())) - var nullValue RouteGuide_ListFeaturesClient +func AnyRouteguideRouteGuideRouteChatServer() RouteGuide_RouteChatServer { + pegomock.RegisterMatcher(pegomock.NewAnyMatcher(reflect.TypeOf((*(RouteGuide_RouteChatServer))(nil)).Elem())) + var nullValue RouteGuide_RouteChatServer return nullValue } -func EqRouteguideRouteGuideListFeaturesClient(value RouteGuide_ListFeaturesClient) RouteGuide_ListFeaturesClient { +func EqRouteguideRouteGuideRouteChatServer(value RouteGuide_RouteChatServer) RouteGuide_RouteChatServer { pegomock.RegisterMatcher(&pegomock.EqMatcher{Value: value}) - var nullValue RouteGuide_ListFeaturesClient + var nullValue RouteGuide_RouteChatServer return nullValue } -func NotEqRouteguideRouteGuideListFeaturesClient(value RouteGuide_ListFeaturesClient) RouteGuide_ListFeaturesClient { +func NotEqRouteguideRouteGuideRouteChatServer(value RouteGuide_RouteChatServer) RouteGuide_RouteChatServer { pegomock.RegisterMatcher(&pegomock.NotEqMatcher{Value: value}) - var nullValue RouteGuide_ListFeaturesClient + var nullValue RouteGuide_RouteChatServer return nullValue } -func RouteguideRouteGuideListFeaturesClientThat(matcher pegomock.ArgumentMatcher) RouteGuide_ListFeaturesClient { +func RouteguideRouteGuideRouteChatServerThat(matcher pegomock.ArgumentMatcher) RouteGuide_RouteChatServer { pegomock.RegisterMatcher(matcher) - var nullValue RouteGuide_ListFeaturesClient + var nullValue RouteGuide_RouteChatServer return nullValue } -func AnyPtrToRouteguideRectangle() *Rectangle { - pegomock.RegisterMatcher(pegomock.NewAnyMatcher(reflect.TypeOf((*(*Rectangle))(nil)).Elem())) - var nullValue *Rectangle +func AnyPtrToRouteguideRouteSummary() *RouteSummary { + pegomock.RegisterMatcher(pegomock.NewAnyMatcher(reflect.TypeOf((*(*RouteSummary))(nil)).Elem())) + var nullValue *RouteSummary return nullValue } -func EqPtrToRouteguideRectangle(value *Rectangle) *Rectangle { +func EqPtrToRouteguideRouteSummary(value *RouteSummary) *RouteSummary { pegomock.RegisterMatcher(&pegomock.EqMatcher{Value: value}) - var nullValue *Rectangle + var nullValue *RouteSummary return nullValue } -func NotEqPtrToRouteguideRectangle(value *Rectangle) *Rectangle { +func NotEqPtrToRouteguideRouteSummary(value *RouteSummary) *RouteSummary { pegomock.RegisterMatcher(&pegomock.NotEqMatcher{Value: value}) - var nullValue *Rectangle + var nullValue *RouteSummary return nullValue } -func PtrToRouteguideRectangleThat(matcher pegomock.ArgumentMatcher) *Rectangle { +func PtrToRouteguideRouteSummaryThat(matcher pegomock.ArgumentMatcher) *RouteSummary { pegomock.RegisterMatcher(matcher) - var nullValue *Rectangle + var nullValue *RouteSummary return nullValue } -func AnyRouteguideRouteGuideRouteChatServer() RouteGuide_RouteChatServer { - pegomock.RegisterMatcher(pegomock.NewAnyMatcher(reflect.TypeOf((*(RouteGuide_RouteChatServer))(nil)).Elem())) - var nullValue RouteGuide_RouteChatServer +func AnyPtrToRouteguidePoint() *Point { + pegomock.RegisterMatcher(pegomock.NewAnyMatcher(reflect.TypeOf((*(*Point))(nil)).Elem())) + var nullValue *Point return nullValue } -func EqRouteguideRouteGuideRouteChatServer(value RouteGuide_RouteChatServer) RouteGuide_RouteChatServer { +func EqPtrToRouteguidePoint(value *Point) *Point { pegomock.RegisterMatcher(&pegomock.EqMatcher{Value: value}) - var nullValue RouteGuide_RouteChatServer + var nullValue *Point return nullValue } -func NotEqRouteguideRouteGuideRouteChatServer(value RouteGuide_RouteChatServer) RouteGuide_RouteChatServer { +func NotEqPtrToRouteguidePoint(value *Point) *Point { pegomock.RegisterMatcher(&pegomock.NotEqMatcher{Value: value}) - var nullValue RouteGuide_RouteChatServer + var nullValue *Point return nullValue } -func RouteguideRouteGuideRouteChatServerThat(matcher pegomock.ArgumentMatcher) RouteGuide_RouteChatServer { +func PtrToRouteguidePointThat(matcher pegomock.ArgumentMatcher) *Point { pegomock.RegisterMatcher(matcher) - var nullValue RouteGuide_RouteChatServer + var nullValue *Point return nullValue } @@ -2803,6 +2755,30 @@ func RouteguideRouteGuideRecordRouteServerThat(matcher pegomock.ArgumentMatcher) return nullValue } +func AnyRouteguideRouteGuideListFeaturesClient() RouteGuide_ListFeaturesClient { + pegomock.RegisterMatcher(pegomock.NewAnyMatcher(reflect.TypeOf((*(RouteGuide_ListFeaturesClient))(nil)).Elem())) + var nullValue RouteGuide_ListFeaturesClient + return nullValue +} + +func EqRouteguideRouteGuideListFeaturesClient(value RouteGuide_ListFeaturesClient) RouteGuide_ListFeaturesClient { + pegomock.RegisterMatcher(&pegomock.EqMatcher{Value: value}) + var nullValue RouteGuide_ListFeaturesClient + return nullValue +} + +func NotEqRouteguideRouteGuideListFeaturesClient(value RouteGuide_ListFeaturesClient) RouteGuide_ListFeaturesClient { + pegomock.RegisterMatcher(&pegomock.NotEqMatcher{Value: value}) + var nullValue RouteGuide_ListFeaturesClient + return nullValue +} + +func RouteguideRouteGuideListFeaturesClientThat(matcher pegomock.ArgumentMatcher) RouteGuide_ListFeaturesClient { + pegomock.RegisterMatcher(matcher) + var nullValue RouteGuide_ListFeaturesClient + return nullValue +} + func AnyRouteguideRouteGuideRecordRouteClient() RouteGuide_RecordRouteClient { pegomock.RegisterMatcher(pegomock.NewAnyMatcher(reflect.TypeOf((*(RouteGuide_RecordRouteClient))(nil)).Elem())) var nullValue RouteGuide_RecordRouteClient @@ -2875,6 +2851,30 @@ func RouteguideRouteGuideRouteChatClientThat(matcher pegomock.ArgumentMatcher) R return nullValue } +func AnyPtrToRouteguideRectangle() *Rectangle { + pegomock.RegisterMatcher(pegomock.NewAnyMatcher(reflect.TypeOf((*(*Rectangle))(nil)).Elem())) + var nullValue *Rectangle + return nullValue +} + +func EqPtrToRouteguideRectangle(value *Rectangle) *Rectangle { + pegomock.RegisterMatcher(&pegomock.EqMatcher{Value: value}) + var nullValue *Rectangle + return nullValue +} + +func NotEqPtrToRouteguideRectangle(value *Rectangle) *Rectangle { + pegomock.RegisterMatcher(&pegomock.NotEqMatcher{Value: value}) + var nullValue *Rectangle + return nullValue +} + +func PtrToRouteguideRectangleThat(matcher pegomock.ArgumentMatcher) *Rectangle { + pegomock.RegisterMatcher(matcher) + var nullValue *Rectangle + return nullValue +} + func AnyPtrToRouteguideRouteNote() *RouteNote { pegomock.RegisterMatcher(pegomock.NewAnyMatcher(reflect.TypeOf((*(*RouteNote))(nil)).Elem())) var nullValue *RouteNote diff --git a/go.mod b/go.mod index f97e90c..30c8d44 100644 --- a/go.mod +++ b/go.mod @@ -1,24 +1,25 @@ module github.com/lovoo/protoc-gen-go-grpcmock -go 1.18 +go 1.21 + +toolchain go1.22.1 require ( github.com/petergtz/pegomock v2.9.0+incompatible github.com/stretchr/testify v1.8.4 - google.golang.org/grpc v1.57.0 - google.golang.org/protobuf v1.31.0 + google.golang.org/grpc v1.65.0 + google.golang.org/protobuf v1.34.2 ) require ( github.com/davecgh/go-spew v1.1.1 // indirect - github.com/golang/protobuf v1.5.3 // indirect github.com/onsi/ginkgo v1.16.5 // indirect github.com/onsi/gomega v1.19.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/stretchr/objx v0.5.0 // indirect - golang.org/x/net v0.9.0 // indirect - golang.org/x/sys v0.7.0 // indirect - golang.org/x/text v0.9.0 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20230525234030-28d5490b6b19 // indirect + golang.org/x/net v0.26.0 // indirect + golang.org/x/sys v0.21.0 // indirect + golang.org/x/text v0.16.0 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20240528184218-531527333157 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 098572f..507de08 100644 --- a/go.sum +++ b/go.sum @@ -12,14 +12,11 @@ github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrU github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= -github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= -github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= +github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= @@ -29,6 +26,7 @@ github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108 github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= github.com/onsi/ginkgo/v2 v2.1.3 h1:e/3Cwtogj0HA+25nMP1jCMDIf8RtRYbGwGGuBIFztkc= +github.com/onsi/ginkgo/v2 v2.1.3/go.mod h1:vw5CSIxN1JObi/U8gcbwft7ZxR2dgaR70JSE3/PpL4c= github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= github.com/onsi/gomega v1.19.0 h1:4ieX6qQjPP/BfC3mpsAtIGGlxTWPeA3Inl/7DtXw1tw= @@ -56,8 +54,8 @@ golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.9.0 h1:aWJ/m6xSmxWBx+V0XRHTlrYrPG56jKsLdTFmsSsCzOM= -golang.org/x/net v0.9.0/go.mod h1:d48xBJpPfHeWQsugry2m+kC02ZBRGRgulfHnEXEuWns= +golang.org/x/net v0.26.0 h1:soB7SVo0PWrY4vPW/+ay0jKDNScG2X9wFeYlXIvJsOQ= +golang.org/x/net v0.26.0/go.mod h1:5YKkiSynbBIh3p6iOc/vibscux0x38BZDkn8sCUPxHE= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -70,34 +68,33 @@ golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.7.0 h1:3jlCCIQZPdOYu1h8BkNvLz8Kgwtae2cagcG/VamtZRU= -golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= +golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.9.0 h1:2sjJmO8cDvYveuX97RDLsxlyUxLl+GHoLxBiRdHllBE= -golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= +golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.6.0 h1:BOw41kyTf3PuCW1pVQf8+Cyg8pMlkYB1oo9iJ6D/lKM= +golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d h1:vU5i/LfpvrRCpgM/VPfJLg5KjxD3E+hfT1SH+d9zLwg= +golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230525234030-28d5490b6b19 h1:0nDDozoAU19Qb2HwhXadU8OcsiO/09cnTqhUtq2MEOM= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230525234030-28d5490b6b19/go.mod h1:66JfowdXAEgad5O9NnYcsNPLCPZJD++2L9X0PCMODrA= -google.golang.org/grpc v1.57.0 h1:kfzNeI/klCGD2YPMUlaGNT3pxvYfga7smW3Vth8Zsiw= -google.golang.org/grpc v1.57.0/go.mod h1:Sd+9RMTACXwmub0zcNY2c4arhtrbBYD1AUHI/dt16Mo= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240528184218-531527333157 h1:Zy9XzmMEflZ/MAaA7vNcoebnRAld7FsPW1EeBB7V0m8= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240528184218-531527333157/go.mod h1:EfXuqaE1J41VCDicxHzUDm+8rk+7ZdXzHV0IhO/I6s0= +google.golang.org/grpc v1.65.0 h1:bs/cUb4lp1G5iImFFd3u5ixQzweKizoZJAwBNLR42lc= +google.golang.org/grpc v1.65.0/go.mod h1:WgYC2ypjlB0EiQi6wdKixMqukr6lBc0Vo+oOgjrM5ZQ= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= -google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= -google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= +google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= @@ -107,6 +104,7 @@ gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= +gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/internal/framework/util.go b/internal/framework/util.go index d1b025a..b0e3f13 100644 --- a/internal/framework/util.go +++ b/internal/framework/util.go @@ -4,8 +4,6 @@ import ( "strings" ) -func unexport(s string) string { return strings.ToLower(s[:1]) + s[1:] } - func substringAfter(value, sep string) string { pos := strings.Index(value, sep) if pos == -1 {