github.com/golang/mock@v1.6.0/mockgen/internal/tests/import_embedded_interface/bugreport_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: bugreport.go 3 4 // Package bugreport is a generated GoMock package. 5 package bugreport 6 7 import ( 8 reflect "reflect" 9 10 gomock "github.com/golang/mock/gomock" 11 ersatz "github.com/golang/mock/mockgen/internal/tests/import_embedded_interface/ersatz" 12 ersatz0 "github.com/golang/mock/mockgen/internal/tests/import_embedded_interface/other/ersatz" 13 ) 14 15 // MockSource is a mock of Source interface. 16 type MockSource struct { 17 ctrl *gomock.Controller 18 recorder *MockSourceMockRecorder 19 } 20 21 // MockSourceMockRecorder is the mock recorder for MockSource. 22 type MockSourceMockRecorder struct { 23 mock *MockSource 24 } 25 26 // NewMockSource creates a new mock instance. 27 func NewMockSource(ctrl *gomock.Controller) *MockSource { 28 mock := &MockSource{ctrl: ctrl} 29 mock.recorder = &MockSourceMockRecorder{mock} 30 return mock 31 } 32 33 // EXPECT returns an object that allows the caller to indicate expected use. 34 func (m *MockSource) EXPECT() *MockSourceMockRecorder { 35 return m.recorder 36 } 37 38 // Error mocks base method. 39 func (m *MockSource) Error() string { 40 m.ctrl.T.Helper() 41 ret := m.ctrl.Call(m, "Error") 42 ret0, _ := ret[0].(string) 43 return ret0 44 } 45 46 // Error indicates an expected call of Error. 47 func (mr *MockSourceMockRecorder) Error() *gomock.Call { 48 mr.mock.ctrl.T.Helper() 49 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Error", reflect.TypeOf((*MockSource)(nil).Error)) 50 } 51 52 // Ersatz mocks base method. 53 func (m *MockSource) Ersatz() ersatz.Return { 54 m.ctrl.T.Helper() 55 ret := m.ctrl.Call(m, "Ersatz") 56 ret0, _ := ret[0].(ersatz.Return) 57 return ret0 58 } 59 60 // Ersatz indicates an expected call of Ersatz. 61 func (mr *MockSourceMockRecorder) Ersatz() *gomock.Call { 62 mr.mock.ctrl.T.Helper() 63 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Ersatz", reflect.TypeOf((*MockSource)(nil).Ersatz)) 64 } 65 66 // OtherErsatz mocks base method. 67 func (m *MockSource) OtherErsatz() ersatz0.Return { 68 m.ctrl.T.Helper() 69 ret := m.ctrl.Call(m, "OtherErsatz") 70 ret0, _ := ret[0].(ersatz0.Return) 71 return ret0 72 } 73 74 // OtherErsatz indicates an expected call of OtherErsatz. 75 func (mr *MockSourceMockRecorder) OtherErsatz() *gomock.Call { 76 mr.mock.ctrl.T.Helper() 77 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OtherErsatz", reflect.TypeOf((*MockSource)(nil).OtherErsatz)) 78 }