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

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: source.go
     3  
     4  // Package mock_source is a generated GoMock package.
     5  package mock_source
     6  
     7  import (
     8  	reflect "reflect"
     9  
    10  	gomock "github.com/golang/mock/gomock"
    11  	source "github.com/golang/mock/mockgen/internal/tests/import_source/definition"
    12  )
    13  
    14  // MockS is a mock of S interface.
    15  type MockS struct {
    16  	ctrl     *gomock.Controller
    17  	recorder *MockSMockRecorder
    18  }
    19  
    20  // MockSMockRecorder is the mock recorder for MockS.
    21  type MockSMockRecorder struct {
    22  	mock *MockS
    23  }
    24  
    25  // NewMockS creates a new mock instance.
    26  func NewMockS(ctrl *gomock.Controller) *MockS {
    27  	mock := &MockS{ctrl: ctrl}
    28  	mock.recorder = &MockSMockRecorder{mock}
    29  	return mock
    30  }
    31  
    32  // EXPECT returns an object that allows the caller to indicate expected use.
    33  func (m *MockS) EXPECT() *MockSMockRecorder {
    34  	return m.recorder
    35  }
    36  
    37  // F mocks base method.
    38  func (m *MockS) F(arg0 source.X) {
    39  	m.ctrl.T.Helper()
    40  	m.ctrl.Call(m, "F", arg0)
    41  }
    42  
    43  // F indicates an expected call of F.
    44  func (mr *MockSMockRecorder) F(arg0 interface{}) *gomock.Call {
    45  	mr.mock.ctrl.T.Helper()
    46  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "F", reflect.TypeOf((*MockS)(nil).F), arg0)
    47  }