github.com/golang/mock@v1.6.0/mockgen/internal/tests/mock_in_test_package/mock_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: user.go 3 4 // Package users_test is a generated GoMock package. 5 package users_test 6 7 import ( 8 reflect "reflect" 9 10 gomock "github.com/golang/mock/gomock" 11 mock_in_test_package "github.com/golang/mock/mockgen/internal/tests/mock_in_test_package" 12 ) 13 14 // MockFinder is a mock of Finder interface. 15 type MockFinder struct { 16 ctrl *gomock.Controller 17 recorder *MockFinderMockRecorder 18 } 19 20 // MockFinderMockRecorder is the mock recorder for MockFinder. 21 type MockFinderMockRecorder struct { 22 mock *MockFinder 23 } 24 25 // NewMockFinder creates a new mock instance. 26 func NewMockFinder(ctrl *gomock.Controller) *MockFinder { 27 mock := &MockFinder{ctrl: ctrl} 28 mock.recorder = &MockFinderMockRecorder{mock} 29 return mock 30 } 31 32 // EXPECT returns an object that allows the caller to indicate expected use. 33 func (m *MockFinder) EXPECT() *MockFinderMockRecorder { 34 return m.recorder 35 } 36 37 // Add mocks base method. 38 func (m *MockFinder) Add(u mock_in_test_package.User) { 39 m.ctrl.T.Helper() 40 m.ctrl.Call(m, "Add", u) 41 } 42 43 // Add indicates an expected call of Add. 44 func (mr *MockFinderMockRecorder) Add(u interface{}) *gomock.Call { 45 mr.mock.ctrl.T.Helper() 46 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Add", reflect.TypeOf((*MockFinder)(nil).Add), u) 47 } 48 49 // FindUser mocks base method. 50 func (m *MockFinder) FindUser(name string) mock_in_test_package.User { 51 m.ctrl.T.Helper() 52 ret := m.ctrl.Call(m, "FindUser", name) 53 ret0, _ := ret[0].(mock_in_test_package.User) 54 return ret0 55 } 56 57 // FindUser indicates an expected call of FindUser. 58 func (mr *MockFinderMockRecorder) FindUser(name interface{}) *gomock.Call { 59 mr.mock.ctrl.T.Helper() 60 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindUser", reflect.TypeOf((*MockFinder)(nil).FindUser), name) 61 }