Skip to content

Commit 728519b

Browse files
committed
Restore uber-go/mock.
1 parent 65081eb commit 728519b

File tree

16 files changed

+494
-215
lines changed

16 files changed

+494
-215
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ Please ensure the go bin directory (usually `~/go/bin`) is in your `PATH`.
6161

6262
The [```mockgen```](https://github.com/uber-go/mock) tool must be installed on your system.
6363

64-
Currently, we are using go.uber.org/mock/mockgen@v0.4.0
64+
Currently, we are using go.uber.org/mock/mockgen@v0.5.0
6565

66-
`go install go.uber.org/mock/mockgen@v0.4.0`
66+
`go install go.uber.org/mock/mockgen@v0.5.0`
6767

6868
### Protoc
6969

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ require (
1212
github.com/spf13/pflag v1.0.6
1313
github.com/stretchr/testify v1.10.0
1414
go.uber.org/goleak v1.3.0
15+
go.uber.org/mock v0.5.0
1516
golang.org/x/net v0.35.0
1617
google.golang.org/grpc v1.70.0
1718
google.golang.org/protobuf v1.36.5

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ go.opentelemetry.io/otel/trace v1.32.0 h1:WIC9mYrXf8TmY/EXuULKc8hR17vE+Hjv2cssQD
138138
go.opentelemetry.io/otel/trace v1.32.0/go.mod h1:+i4rkvCraA+tG6AzwloGaCtkx53Fa+L+V8e9a7YvhT8=
139139
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
140140
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
141+
go.uber.org/mock v0.5.0 h1:KAMbZvZPyBPWgD14IrIQ38QCyjwpvVVV6K/bHl1IwQU=
142+
go.uber.org/mock v0.5.0/go.mod h1:ge71pBPLYDk7QIi1LupWxdAykm7KIEFchiOqd6z7qMM=
141143
go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
142144
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
143145
go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8=

pkg/server/backend_manager_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import (
2222
"reflect"
2323
"testing"
2424

25-
"github.com/golang/mock/gomock"
2625
"github.com/stretchr/testify/assert"
26+
"go.uber.org/mock/gomock"
2727
"google.golang.org/grpc/metadata"
2828

2929
agentmock "sigs.k8s.io/apiserver-network-proxy/proto/agent/mocks"

pkg/server/server_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ import (
2525
"testing"
2626
"time"
2727

28-
"github.com/golang/mock/gomock"
2928
"github.com/google/uuid"
29+
"go.uber.org/mock/gomock"
3030
"google.golang.org/grpc/metadata"
3131

3232
promtest "github.com/prometheus/client_golang/prometheus/testutil"

proto/agent/mocks/agent_mock.go

Lines changed: 21 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/golang/mock/CONTRIBUTORS

Lines changed: 0 additions & 37 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)