1
0
mirror of https://github.com/rancher/steve.git synced 2025-09-15 23:08:26 +00:00

[v0.3] Migrate the mocking library to uber's (#475)

* Migrate the mocking library to uber's (#291)

* Migrate from golang/mock to uber/mock.

* Update go.mod

* Continue migration to uber/mock.

* Tweaks from running the go.uber.mock's mockgen.

* go generate ./...

---------

Co-authored-by: Eric Promislow <epromislow@suse.com>
This commit is contained in:
Tom Lebreux
2025-02-03 15:16:36 -05:00
committed by GitHub
parent 458a12d2d7
commit d50101289f
22 changed files with 181 additions and 132 deletions

View File

@@ -1,5 +1,10 @@
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/rancher/steve/pkg/accesscontrol (interfaces: AccessSetLookup)
//
// Generated by this command:
//
// mockgen --build_flags=--mod=mod -package fake -destination fake/AccessSetLookup.go github.com/rancher/steve/pkg/accesscontrol AccessSetLookup
//
// Package fake is a generated GoMock package.
package fake
@@ -7,8 +12,8 @@ package fake
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
accesscontrol "github.com/rancher/steve/pkg/accesscontrol"
gomock "go.uber.org/mock/gomock"
user "k8s.io/apiserver/pkg/authentication/user"
)
@@ -44,7 +49,7 @@ func (m *MockAccessSetLookup) AccessFor(arg0 user.Info) *accesscontrol.AccessSet
}
// AccessFor indicates an expected call of AccessFor.
func (mr *MockAccessSetLookupMockRecorder) AccessFor(arg0 interface{}) *gomock.Call {
func (mr *MockAccessSetLookupMockRecorder) AccessFor(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AccessFor", reflect.TypeOf((*MockAccessSetLookup)(nil).AccessFor), arg0)
}
@@ -56,7 +61,7 @@ func (m *MockAccessSetLookup) PurgeUserData(arg0 string) {
}
// PurgeUserData indicates an expected call of PurgeUserData.
func (mr *MockAccessSetLookupMockRecorder) PurgeUserData(arg0 interface{}) *gomock.Call {
func (mr *MockAccessSetLookupMockRecorder) PurgeUserData(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PurgeUserData", reflect.TypeOf((*MockAccessSetLookup)(nil).PurgeUserData), arg0)
}