github.com/unionj-cloud/go-doudou@v1.3.8-0.20221011095552-0088008e5b31/framework/configmgr/mock/mock_apollo_client_interface.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: ./apollo_client_interface.go 3 4 // Package mock is a generated GoMock package. 5 package mock 6 7 import ( 8 list "container/list" 9 reflect "reflect" 10 11 agcache "github.com/apolloconfig/agollo/v4/agcache" 12 storage "github.com/apolloconfig/agollo/v4/storage" 13 gomock "github.com/golang/mock/gomock" 14 ) 15 16 // MockClient is a mock of Client interface. 17 type MockClient struct { 18 ctrl *gomock.Controller 19 recorder *MockClientMockRecorder 20 } 21 22 // MockClientMockRecorder is the mock recorder for MockClient. 23 type MockClientMockRecorder struct { 24 mock *MockClient 25 } 26 27 // NewMockClient creates a new mock instance. 28 func NewMockClient(ctrl *gomock.Controller) *MockClient { 29 mock := &MockClient{ctrl: ctrl} 30 mock.recorder = &MockClientMockRecorder{mock} 31 return mock 32 } 33 34 // EXPECT returns an object that allows the caller to indicate expected use. 35 func (m *MockClient) EXPECT() *MockClientMockRecorder { 36 return m.recorder 37 } 38 39 // AddChangeListener mocks base method. 40 func (m *MockClient) AddChangeListener(listener storage.ChangeListener) { 41 m.ctrl.T.Helper() 42 m.ctrl.Call(m, "AddChangeListener", listener) 43 } 44 45 // AddChangeListener indicates an expected call of AddChangeListener. 46 func (mr *MockClientMockRecorder) AddChangeListener(listener interface{}) *gomock.Call { 47 mr.mock.ctrl.T.Helper() 48 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddChangeListener", reflect.TypeOf((*MockClient)(nil).AddChangeListener), listener) 49 } 50 51 // GetApolloConfigCache mocks base method. 52 func (m *MockClient) GetApolloConfigCache() agcache.CacheInterface { 53 m.ctrl.T.Helper() 54 ret := m.ctrl.Call(m, "GetApolloConfigCache") 55 ret0, _ := ret[0].(agcache.CacheInterface) 56 return ret0 57 } 58 59 // GetApolloConfigCache indicates an expected call of GetApolloConfigCache. 60 func (mr *MockClientMockRecorder) GetApolloConfigCache() *gomock.Call { 61 mr.mock.ctrl.T.Helper() 62 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetApolloConfigCache", reflect.TypeOf((*MockClient)(nil).GetApolloConfigCache)) 63 } 64 65 // GetBoolValue mocks base method. 66 func (m *MockClient) GetBoolValue(key string, defaultValue bool) bool { 67 m.ctrl.T.Helper() 68 ret := m.ctrl.Call(m, "GetBoolValue", key, defaultValue) 69 ret0, _ := ret[0].(bool) 70 return ret0 71 } 72 73 // GetBoolValue indicates an expected call of GetBoolValue. 74 func (mr *MockClientMockRecorder) GetBoolValue(key, defaultValue interface{}) *gomock.Call { 75 mr.mock.ctrl.T.Helper() 76 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBoolValue", reflect.TypeOf((*MockClient)(nil).GetBoolValue), key, defaultValue) 77 } 78 79 // GetChangeListeners mocks base method. 80 func (m *MockClient) GetChangeListeners() *list.List { 81 m.ctrl.T.Helper() 82 ret := m.ctrl.Call(m, "GetChangeListeners") 83 ret0, _ := ret[0].(*list.List) 84 return ret0 85 } 86 87 // GetChangeListeners indicates an expected call of GetChangeListeners. 88 func (mr *MockClientMockRecorder) GetChangeListeners() *gomock.Call { 89 mr.mock.ctrl.T.Helper() 90 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetChangeListeners", reflect.TypeOf((*MockClient)(nil).GetChangeListeners)) 91 } 92 93 // GetConfig mocks base method. 94 func (m *MockClient) GetConfig(namespace string) *storage.Config { 95 m.ctrl.T.Helper() 96 ret := m.ctrl.Call(m, "GetConfig", namespace) 97 ret0, _ := ret[0].(*storage.Config) 98 return ret0 99 } 100 101 // GetConfig indicates an expected call of GetConfig. 102 func (mr *MockClientMockRecorder) GetConfig(namespace interface{}) *gomock.Call { 103 mr.mock.ctrl.T.Helper() 104 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConfig", reflect.TypeOf((*MockClient)(nil).GetConfig), namespace) 105 } 106 107 // GetConfigAndInit mocks base method. 108 func (m *MockClient) GetConfigAndInit(namespace string) *storage.Config { 109 m.ctrl.T.Helper() 110 ret := m.ctrl.Call(m, "GetConfigAndInit", namespace) 111 ret0, _ := ret[0].(*storage.Config) 112 return ret0 113 } 114 115 // GetConfigAndInit indicates an expected call of GetConfigAndInit. 116 func (mr *MockClientMockRecorder) GetConfigAndInit(namespace interface{}) *gomock.Call { 117 mr.mock.ctrl.T.Helper() 118 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConfigAndInit", reflect.TypeOf((*MockClient)(nil).GetConfigAndInit), namespace) 119 } 120 121 // GetConfigCache mocks base method. 122 func (m *MockClient) GetConfigCache(namespace string) agcache.CacheInterface { 123 m.ctrl.T.Helper() 124 ret := m.ctrl.Call(m, "GetConfigCache", namespace) 125 ret0, _ := ret[0].(agcache.CacheInterface) 126 return ret0 127 } 128 129 // GetConfigCache indicates an expected call of GetConfigCache. 130 func (mr *MockClientMockRecorder) GetConfigCache(namespace interface{}) *gomock.Call { 131 mr.mock.ctrl.T.Helper() 132 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConfigCache", reflect.TypeOf((*MockClient)(nil).GetConfigCache), namespace) 133 } 134 135 // GetDefaultConfigCache mocks base method. 136 func (m *MockClient) GetDefaultConfigCache() agcache.CacheInterface { 137 m.ctrl.T.Helper() 138 ret := m.ctrl.Call(m, "GetDefaultConfigCache") 139 ret0, _ := ret[0].(agcache.CacheInterface) 140 return ret0 141 } 142 143 // GetDefaultConfigCache indicates an expected call of GetDefaultConfigCache. 144 func (mr *MockClientMockRecorder) GetDefaultConfigCache() *gomock.Call { 145 mr.mock.ctrl.T.Helper() 146 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDefaultConfigCache", reflect.TypeOf((*MockClient)(nil).GetDefaultConfigCache)) 147 } 148 149 // GetFloatValue mocks base method. 150 func (m *MockClient) GetFloatValue(key string, defaultValue float64) float64 { 151 m.ctrl.T.Helper() 152 ret := m.ctrl.Call(m, "GetFloatValue", key, defaultValue) 153 ret0, _ := ret[0].(float64) 154 return ret0 155 } 156 157 // GetFloatValue indicates an expected call of GetFloatValue. 158 func (mr *MockClientMockRecorder) GetFloatValue(key, defaultValue interface{}) *gomock.Call { 159 mr.mock.ctrl.T.Helper() 160 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFloatValue", reflect.TypeOf((*MockClient)(nil).GetFloatValue), key, defaultValue) 161 } 162 163 // GetIntSliceValue mocks base method. 164 func (m *MockClient) GetIntSliceValue(key string, defaultValue []int) []int { 165 m.ctrl.T.Helper() 166 ret := m.ctrl.Call(m, "GetIntSliceValue", key, defaultValue) 167 ret0, _ := ret[0].([]int) 168 return ret0 169 } 170 171 // GetIntSliceValue indicates an expected call of GetIntSliceValue. 172 func (mr *MockClientMockRecorder) GetIntSliceValue(key, defaultValue interface{}) *gomock.Call { 173 mr.mock.ctrl.T.Helper() 174 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetIntSliceValue", reflect.TypeOf((*MockClient)(nil).GetIntSliceValue), key, defaultValue) 175 } 176 177 // GetIntValue mocks base method. 178 func (m *MockClient) GetIntValue(key string, defaultValue int) int { 179 m.ctrl.T.Helper() 180 ret := m.ctrl.Call(m, "GetIntValue", key, defaultValue) 181 ret0, _ := ret[0].(int) 182 return ret0 183 } 184 185 // GetIntValue indicates an expected call of GetIntValue. 186 func (mr *MockClientMockRecorder) GetIntValue(key, defaultValue interface{}) *gomock.Call { 187 mr.mock.ctrl.T.Helper() 188 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetIntValue", reflect.TypeOf((*MockClient)(nil).GetIntValue), key, defaultValue) 189 } 190 191 // GetStringSliceValue mocks base method. 192 func (m *MockClient) GetStringSliceValue(key string, defaultValue []string) []string { 193 m.ctrl.T.Helper() 194 ret := m.ctrl.Call(m, "GetStringSliceValue", key, defaultValue) 195 ret0, _ := ret[0].([]string) 196 return ret0 197 } 198 199 // GetStringSliceValue indicates an expected call of GetStringSliceValue. 200 func (mr *MockClientMockRecorder) GetStringSliceValue(key, defaultValue interface{}) *gomock.Call { 201 mr.mock.ctrl.T.Helper() 202 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStringSliceValue", reflect.TypeOf((*MockClient)(nil).GetStringSliceValue), key, defaultValue) 203 } 204 205 // GetStringValue mocks base method. 206 func (m *MockClient) GetStringValue(key, defaultValue string) string { 207 m.ctrl.T.Helper() 208 ret := m.ctrl.Call(m, "GetStringValue", key, defaultValue) 209 ret0, _ := ret[0].(string) 210 return ret0 211 } 212 213 // GetStringValue indicates an expected call of GetStringValue. 214 func (mr *MockClientMockRecorder) GetStringValue(key, defaultValue interface{}) *gomock.Call { 215 mr.mock.ctrl.T.Helper() 216 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStringValue", reflect.TypeOf((*MockClient)(nil).GetStringValue), key, defaultValue) 217 } 218 219 // GetValue mocks base method. 220 func (m *MockClient) GetValue(key string) string { 221 m.ctrl.T.Helper() 222 ret := m.ctrl.Call(m, "GetValue", key) 223 ret0, _ := ret[0].(string) 224 return ret0 225 } 226 227 // GetValue indicates an expected call of GetValue. 228 func (mr *MockClientMockRecorder) GetValue(key interface{}) *gomock.Call { 229 mr.mock.ctrl.T.Helper() 230 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetValue", reflect.TypeOf((*MockClient)(nil).GetValue), key) 231 } 232 233 // RemoveChangeListener mocks base method. 234 func (m *MockClient) RemoveChangeListener(listener storage.ChangeListener) { 235 m.ctrl.T.Helper() 236 m.ctrl.Call(m, "RemoveChangeListener", listener) 237 } 238 239 // RemoveChangeListener indicates an expected call of RemoveChangeListener. 240 func (mr *MockClientMockRecorder) RemoveChangeListener(listener interface{}) *gomock.Call { 241 mr.mock.ctrl.T.Helper() 242 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveChangeListener", reflect.TypeOf((*MockClient)(nil).RemoveChangeListener), listener) 243 } 244 245 // UseEventDispatch mocks base method. 246 func (m *MockClient) UseEventDispatch() { 247 m.ctrl.T.Helper() 248 m.ctrl.Call(m, "UseEventDispatch") 249 } 250 251 // UseEventDispatch indicates an expected call of UseEventDispatch. 252 func (mr *MockClientMockRecorder) UseEventDispatch() *gomock.Call { 253 mr.mock.ctrl.T.Helper() 254 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UseEventDispatch", reflect.TypeOf((*MockClient)(nil).UseEventDispatch)) 255 }