...
1
2
3
4
5 package mock_gomock
6
7 import (
8 reflect "reflect"
9
10 gomock "github.com/golang/mock/gomock"
11 )
12
13
14 type MockMatcher struct {
15 ctrl *gomock.Controller
16 recorder *MockMatcherMockRecorder
17 }
18
19
20 type MockMatcherMockRecorder struct {
21 mock *MockMatcher
22 }
23
24
25 func NewMockMatcher(ctrl *gomock.Controller) *MockMatcher {
26 mock := &MockMatcher{ctrl: ctrl}
27 mock.recorder = &MockMatcherMockRecorder{mock}
28 return mock
29 }
30
31
32 func (m *MockMatcher) EXPECT() *MockMatcherMockRecorder {
33 return m.recorder
34 }
35
36
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
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
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
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 }
63
View as plain text