Merge pull request #120969 from skitt/uber-go-mock

Switch from golang/mock to uber-go/mock
This commit is contained in:
Kubernetes Prow Robot
2024-04-17 23:59:24 -07:00
committed by GitHub
49 changed files with 630 additions and 351 deletions

View File

@@ -16,6 +16,11 @@ limitations under the License.
// Code generated by MockGen. DO NOT EDIT.
// Source: handlers.go
//
// Generated by this command:
//
// mockgen -source=handlers.go -destination=handlers.mock.go -package=oidc TokenHandler JWKsHandler
//
// Package oidc is a generated GoMock package.
package oidc
@@ -23,8 +28,8 @@ package oidc
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
go_jose_v2 "gopkg.in/square/go-jose.v2"
gomock "go.uber.org/mock/gomock"
jose "gopkg.in/square/go-jose.v2"
)
// MockTokenHandler is a mock of TokenHandler interface.
@@ -89,10 +94,10 @@ func (m *MockJWKsHandler) EXPECT() *MockJWKsHandlerMockRecorder {
}
// KeySet mocks base method.
func (m *MockJWKsHandler) KeySet() go_jose_v2.JSONWebKeySet {
func (m *MockJWKsHandler) KeySet() jose.JSONWebKeySet {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "KeySet")
ret0, _ := ret[0].(go_jose_v2.JSONWebKeySet)
ret0, _ := ret[0].(jose.JSONWebKeySet)
return ret0
}

View File

@@ -31,8 +31,8 @@ import (
"os"
"testing"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/require"
"go.uber.org/mock/gomock"
"gopkg.in/square/go-jose.v2"
)