github.com/golang/mock@v1.6.0/mockgen/internal/tests/test_package/mock_test.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: user_test.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  )
    12  
    13  // MockFinder is a mock of Finder interface.
    14  type MockFinder struct {
    15  	ctrl     *gomock.Controller
    16  	recorder *MockFinderMockRecorder
    17  }
    18  
    19  // MockFinderMockRecorder is the mock recorder for MockFinder.
    20  type MockFinderMockRecorder struct {
    21  	mock *MockFinder
    22  }
    23  
    24  // NewMockFinder creates a new mock instance.
    25  func NewMockFinder(ctrl *gomock.Controller) *MockFinder {
    26  	mock := &MockFinder{ctrl: ctrl}
    27  	mock.recorder = &MockFinderMockRecorder{mock}
    28  	return mock
    29  }
    30  
    31  // EXPECT returns an object that allows the caller to indicate expected use.
    32  func (m *MockFinder) EXPECT() *MockFinderMockRecorder {
    33  	return m.recorder
    34  }
    35  
    36  // Add mocks base method.
    37  func (m *MockFinder) Add(u User) {
    38  	m.ctrl.T.Helper()
    39  	m.ctrl.Call(m, "Add", u)
    40  }
    41  
    42  // Add indicates an expected call of Add.
    43  func (mr *MockFinderMockRecorder) Add(u interface{}) *gomock.Call {
    44  	mr.mock.ctrl.T.Helper()
    45  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Add", reflect.TypeOf((*MockFinder)(nil).Add), u)
    46  }
    47  
    48  // FindUser mocks base method.
    49  func (m *MockFinder) FindUser(name string) User {
    50  	m.ctrl.T.Helper()
    51  	ret := m.ctrl.Call(m, "FindUser", name)
    52  	ret0, _ := ret[0].(User)
    53  	return ret0
    54  }
    55  
    56  // FindUser indicates an expected call of FindUser.
    57  func (mr *MockFinderMockRecorder) FindUser(name interface{}) *gomock.Call {
    58  	mr.mock.ctrl.T.Helper()
    59  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindUser", reflect.TypeOf((*MockFinder)(nil).FindUser), name)
    60  }