github.com/golang/mock@v1.6.0/mockgen/internal/tests/unexported_method/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 ) 12 13 // MockExample is a mock of Example interface. 14 type MockExample struct { 15 ctrl *gomock.Controller 16 recorder *MockExampleMockRecorder 17 } 18 19 // MockExampleMockRecorder is the mock recorder for MockExample. 20 type MockExampleMockRecorder struct { 21 mock *MockExample 22 } 23 24 // NewMockExample creates a new mock instance. 25 func NewMockExample(ctrl *gomock.Controller) *MockExample { 26 mock := &MockExample{ctrl: ctrl} 27 mock.recorder = &MockExampleMockRecorder{mock} 28 return mock 29 } 30 31 // EXPECT returns an object that allows the caller to indicate expected use. 32 func (m *MockExample) EXPECT() *MockExampleMockRecorder { 33 return m.recorder 34 } 35 36 // someMethod mocks base method. 37 func (m *MockExample) someMethod(arg0 string) string { 38 m.ctrl.T.Helper() 39 ret := m.ctrl.Call(m, "someMethod", arg0) 40 ret0, _ := ret[0].(string) 41 return ret0 42 } 43 44 // someMethod indicates an expected call of someMethod. 45 func (mr *MockExampleMockRecorder) someMethod(arg0 interface{}) *gomock.Call { 46 mr.mock.ctrl.T.Helper() 47 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "someMethod", reflect.TypeOf((*MockExample)(nil).someMethod), arg0) 48 }