github.com/golang/mock@v1.6.0/gomock/internal/mock_gomock/mock_matcher.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/golang/mock/gomock (interfaces: Matcher) 3 4 // Package mock_gomock is a generated GoMock package. 5 package mock_gomock 6 7 import ( 8 reflect "reflect" 9 10 gomock "github.com/golang/mock/gomock" 11 ) 12 13 // MockMatcher is a mock of Matcher interface. 14 type MockMatcher struct { 15 ctrl *gomock.Controller 16 recorder *MockMatcherMockRecorder 17 } 18 19 // MockMatcherMockRecorder is the mock recorder for MockMatcher. 20 type MockMatcherMockRecorder struct { 21 mock *MockMatcher 22 } 23 24 // NewMockMatcher creates a new mock instance. 25 func NewMockMatcher(ctrl *gomock.Controller) *MockMatcher { 26 mock := &MockMatcher{ctrl: ctrl} 27 mock.recorder = &MockMatcherMockRecorder{mock} 28 return mock 29 } 30 31 // EXPECT returns an object that allows the caller to indicate expected use. 32 func (m *MockMatcher) EXPECT() *MockMatcherMockRecorder { 33 return m.recorder 34 } 35 36 // Matches mocks base method. 37 func (m *MockMatcher) Matches(arg0 interface{}) bool { 38 m.ctrl.T.Helper() 39 ret := m.ctrl.Call(m, "Matches", arg0) 40 ret0, _ := ret[0].(bool) 41 return ret0 42 } 43 44 // Matches indicates an expected call of Matches. 45 func (mr *MockMatcherMockRecorder) Matches(arg0 interface{}) *gomock.Call { 46 mr.mock.ctrl.T.Helper() 47 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Matches", reflect.TypeOf((*MockMatcher)(nil).Matches), arg0) 48 } 49 50 // String mocks base method. 51 func (m *MockMatcher) String() string { 52 m.ctrl.T.Helper() 53 ret := m.ctrl.Call(m, "String") 54 ret0, _ := ret[0].(string) 55 return ret0 56 } 57 58 // String indicates an expected call of String. 59 func (mr *MockMatcherMockRecorder) String() *gomock.Call { 60 mr.mock.ctrl.T.Helper() 61 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "String", reflect.TypeOf((*MockMatcher)(nil).String)) 62 }