github.com/golang/mock@v1.6.0/mockgen/internal/tests/aux_imports_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 faux "github.com/golang/mock/mockgen/internal/tests/aux_imports_embedded_interface/faux" 12 ) 13 14 // MockSource is a mock of Source interface. 15 type MockSource struct { 16 ctrl *gomock.Controller 17 recorder *MockSourceMockRecorder 18 } 19 20 // MockSourceMockRecorder is the mock recorder for MockSource. 21 type MockSourceMockRecorder struct { 22 mock *MockSource 23 } 24 25 // NewMockSource creates a new mock instance. 26 func NewMockSource(ctrl *gomock.Controller) *MockSource { 27 mock := &MockSource{ctrl: ctrl} 28 mock.recorder = &MockSourceMockRecorder{mock} 29 return mock 30 } 31 32 // EXPECT returns an object that allows the caller to indicate expected use. 33 func (m *MockSource) EXPECT() *MockSourceMockRecorder { 34 return m.recorder 35 } 36 37 // Error mocks base method. 38 func (m *MockSource) Error() string { 39 m.ctrl.T.Helper() 40 ret := m.ctrl.Call(m, "Error") 41 ret0, _ := ret[0].(string) 42 return ret0 43 } 44 45 // Error indicates an expected call of Error. 46 func (mr *MockSourceMockRecorder) Error() *gomock.Call { 47 mr.mock.ctrl.T.Helper() 48 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Error", reflect.TypeOf((*MockSource)(nil).Error)) 49 } 50 51 // Method mocks base method. 52 func (m *MockSource) Method() faux.Return { 53 m.ctrl.T.Helper() 54 ret := m.ctrl.Call(m, "Method") 55 ret0, _ := ret[0].(faux.Return) 56 return ret0 57 } 58 59 // Method indicates an expected call of Method. 60 func (mr *MockSourceMockRecorder) Method() *gomock.Call { 61 mr.mock.ctrl.T.Helper() 62 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Method", reflect.TypeOf((*MockSource)(nil).Method)) 63 }