github.com/angryronald/go-kit@v0.0.0-20240505173814-ff2bd9c79dbf/generic/repository/generic.mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: generic/repository/generic.interface.go 3 4 // Package repository is a generated GoMock package. 5 package repository 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 gomock "github.com/golang/mock/gomock" 12 uuid "github.com/google/uuid" 13 ) 14 15 // MockGenericRepositoryInterface is a mock of GenericRepositoryInterface interface. 16 type MockGenericRepositoryInterface struct { 17 ctrl *gomock.Controller 18 recorder *MockGenericRepositoryInterfaceMockRecorder 19 } 20 21 // MockGenericRepositoryInterfaceMockRecorder is the mock recorder for MockGenericRepositoryInterface. 22 type MockGenericRepositoryInterfaceMockRecorder struct { 23 mock *MockGenericRepositoryInterface 24 } 25 26 // NewMockGenericRepositoryInterface creates a new mock instance. 27 func NewMockGenericRepositoryInterface(ctrl *gomock.Controller) *MockGenericRepositoryInterface { 28 mock := &MockGenericRepositoryInterface{ctrl: ctrl} 29 mock.recorder = &MockGenericRepositoryInterfaceMockRecorder{mock} 30 return mock 31 } 32 33 // EXPECT returns an object that allows the caller to indicate expected use. 34 func (m *MockGenericRepositoryInterface) EXPECT() *MockGenericRepositoryInterfaceMockRecorder { 35 return m.recorder 36 } 37 38 // BulkInsert mocks base method. 39 func (m *MockGenericRepositoryInterface) BulkInsert(ctx context.Context, data interface{}) (interface{}, error) { 40 m.ctrl.T.Helper() 41 ret := m.ctrl.Call(m, "BulkInsert", ctx, data) 42 ret0, _ := ret[0].(interface{}) 43 ret1, _ := ret[1].(error) 44 return ret0, ret1 45 } 46 47 // BulkInsert indicates an expected call of BulkInsert. 48 func (mr *MockGenericRepositoryInterfaceMockRecorder) BulkInsert(ctx, data interface{}) *gomock.Call { 49 mr.mock.ctrl.T.Helper() 50 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BulkInsert", reflect.TypeOf((*MockGenericRepositoryInterface)(nil).BulkInsert), ctx, data) 51 } 52 53 // BulkUpsert mocks base method. 54 func (m *MockGenericRepositoryInterface) BulkUpsert(ctx context.Context, data interface{}) (interface{}, error) { 55 m.ctrl.T.Helper() 56 ret := m.ctrl.Call(m, "BulkUpsert", ctx, data) 57 ret0, _ := ret[0].(interface{}) 58 ret1, _ := ret[1].(error) 59 return ret0, ret1 60 } 61 62 // BulkUpsert indicates an expected call of BulkUpsert. 63 func (mr *MockGenericRepositoryInterfaceMockRecorder) BulkUpsert(ctx, data interface{}) *gomock.Call { 64 mr.mock.ctrl.T.Helper() 65 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BulkUpsert", reflect.TypeOf((*MockGenericRepositoryInterface)(nil).BulkUpsert), ctx, data) 66 } 67 68 // Delete mocks base method. 69 func (m *MockGenericRepositoryInterface) Delete(ctx context.Context, data interface{}) (interface{}, error) { 70 m.ctrl.T.Helper() 71 ret := m.ctrl.Call(m, "Delete", ctx, data) 72 ret0, _ := ret[0].(interface{}) 73 ret1, _ := ret[1].(error) 74 return ret0, ret1 75 } 76 77 // Delete indicates an expected call of Delete. 78 func (mr *MockGenericRepositoryInterfaceMockRecorder) Delete(ctx, data interface{}) *gomock.Call { 79 mr.mock.ctrl.T.Helper() 80 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockGenericRepositoryInterface)(nil).Delete), ctx, data) 81 } 82 83 // FindAll mocks base method. 84 func (m *MockGenericRepositoryInterface) FindAll(ctx context.Context, params map[string]interface{}, conditionalOperations []ConditionalOperation, relationalOperations []RelationalOperation, page, limit int, result interface{}) (interface{}, error) { 85 m.ctrl.T.Helper() 86 ret := m.ctrl.Call(m, "FindAll", ctx, params, conditionalOperations, relationalOperations, page, limit, result) 87 ret0, _ := ret[0].(interface{}) 88 ret1, _ := ret[1].(error) 89 return ret0, ret1 90 } 91 92 // FindAll indicates an expected call of FindAll. 93 func (mr *MockGenericRepositoryInterfaceMockRecorder) FindAll(ctx, params, conditionalOperations, relationalOperations, page, limit, result interface{}) *gomock.Call { 94 mr.mock.ctrl.T.Helper() 95 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindAll", reflect.TypeOf((*MockGenericRepositoryInterface)(nil).FindAll), ctx, params, conditionalOperations, relationalOperations, page, limit, result) 96 } 97 98 // FindByID mocks base method. 99 func (m *MockGenericRepositoryInterface) FindByID(ctx context.Context, id uuid.UUID, result interface{}) (interface{}, error) { 100 m.ctrl.T.Helper() 101 ret := m.ctrl.Call(m, "FindByID", ctx, id, result) 102 ret0, _ := ret[0].(interface{}) 103 ret1, _ := ret[1].(error) 104 return ret0, ret1 105 } 106 107 // FindByID indicates an expected call of FindByID. 108 func (mr *MockGenericRepositoryInterfaceMockRecorder) FindByID(ctx, id, result interface{}) *gomock.Call { 109 mr.mock.ctrl.T.Helper() 110 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindByID", reflect.TypeOf((*MockGenericRepositoryInterface)(nil).FindByID), ctx, id, result) 111 } 112 113 // FindOne mocks base method. 114 func (m *MockGenericRepositoryInterface) FindOne(ctx context.Context, key string, value, result interface{}) (interface{}, error) { 115 m.ctrl.T.Helper() 116 ret := m.ctrl.Call(m, "FindOne", ctx, key, value, result) 117 ret0, _ := ret[0].(interface{}) 118 ret1, _ := ret[1].(error) 119 return ret0, ret1 120 } 121 122 // FindOne indicates an expected call of FindOne. 123 func (mr *MockGenericRepositoryInterfaceMockRecorder) FindOne(ctx, key, value, result interface{}) *gomock.Call { 124 mr.mock.ctrl.T.Helper() 125 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindOne", reflect.TypeOf((*MockGenericRepositoryInterface)(nil).FindOne), ctx, key, value, result) 126 } 127 128 // Insert mocks base method. 129 func (m *MockGenericRepositoryInterface) Insert(ctx context.Context, data interface{}) (interface{}, error) { 130 m.ctrl.T.Helper() 131 ret := m.ctrl.Call(m, "Insert", ctx, data) 132 ret0, _ := ret[0].(interface{}) 133 ret1, _ := ret[1].(error) 134 return ret0, ret1 135 } 136 137 // Insert indicates an expected call of Insert. 138 func (mr *MockGenericRepositoryInterfaceMockRecorder) Insert(ctx, data interface{}) *gomock.Call { 139 mr.mock.ctrl.T.Helper() 140 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Insert", reflect.TypeOf((*MockGenericRepositoryInterface)(nil).Insert), ctx, data) 141 } 142 143 // Query mocks base method. 144 func (m *MockGenericRepositoryInterface) Query(ctx context.Context, query string, params []interface{}, result interface{}) (interface{}, error) { 145 m.ctrl.T.Helper() 146 ret := m.ctrl.Call(m, "Query", ctx, query, params, result) 147 ret0, _ := ret[0].(interface{}) 148 ret1, _ := ret[1].(error) 149 return ret0, ret1 150 } 151 152 // Query indicates an expected call of Query. 153 func (mr *MockGenericRepositoryInterfaceMockRecorder) Query(ctx, query, params, result interface{}) *gomock.Call { 154 mr.mock.ctrl.T.Helper() 155 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Query", reflect.TypeOf((*MockGenericRepositoryInterface)(nil).Query), ctx, query, params, result) 156 } 157 158 // Update mocks base method. 159 func (m *MockGenericRepositoryInterface) Update(ctx context.Context, data interface{}) (interface{}, error) { 160 m.ctrl.T.Helper() 161 ret := m.ctrl.Call(m, "Update", ctx, data) 162 ret0, _ := ret[0].(interface{}) 163 ret1, _ := ret[1].(error) 164 return ret0, ret1 165 } 166 167 // Update indicates an expected call of Update. 168 func (mr *MockGenericRepositoryInterfaceMockRecorder) Update(ctx, data interface{}) *gomock.Call { 169 mr.mock.ctrl.T.Helper() 170 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockGenericRepositoryInterface)(nil).Update), ctx, data) 171 } 172 173 // Upsert mocks base method. 174 func (m *MockGenericRepositoryInterface) Upsert(ctx context.Context, data interface{}) (interface{}, error) { 175 m.ctrl.T.Helper() 176 ret := m.ctrl.Call(m, "Upsert", ctx, data) 177 ret0, _ := ret[0].(interface{}) 178 ret1, _ := ret[1].(error) 179 return ret0, ret1 180 } 181 182 // Upsert indicates an expected call of Upsert. 183 func (mr *MockGenericRepositoryInterfaceMockRecorder) Upsert(ctx, data interface{}) *gomock.Call { 184 mr.mock.ctrl.T.Helper() 185 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Upsert", reflect.TypeOf((*MockGenericRepositoryInterface)(nil).Upsert), ctx, data) 186 } 187 188 // MockImmutableGenericRepositoryInterface is a mock of ImmutableGenericRepositoryInterface interface. 189 type MockImmutableGenericRepositoryInterface struct { 190 ctrl *gomock.Controller 191 recorder *MockImmutableGenericRepositoryInterfaceMockRecorder 192 } 193 194 // MockImmutableGenericRepositoryInterfaceMockRecorder is the mock recorder for MockImmutableGenericRepositoryInterface. 195 type MockImmutableGenericRepositoryInterfaceMockRecorder struct { 196 mock *MockImmutableGenericRepositoryInterface 197 } 198 199 // NewMockImmutableGenericRepositoryInterface creates a new mock instance. 200 func NewMockImmutableGenericRepositoryInterface(ctrl *gomock.Controller) *MockImmutableGenericRepositoryInterface { 201 mock := &MockImmutableGenericRepositoryInterface{ctrl: ctrl} 202 mock.recorder = &MockImmutableGenericRepositoryInterfaceMockRecorder{mock} 203 return mock 204 } 205 206 // EXPECT returns an object that allows the caller to indicate expected use. 207 func (m *MockImmutableGenericRepositoryInterface) EXPECT() *MockImmutableGenericRepositoryInterfaceMockRecorder { 208 return m.recorder 209 } 210 211 // BulkInsert mocks base method. 212 func (m *MockImmutableGenericRepositoryInterface) BulkInsert(ctx context.Context, data interface{}) (interface{}, error) { 213 m.ctrl.T.Helper() 214 ret := m.ctrl.Call(m, "BulkInsert", ctx, data) 215 ret0, _ := ret[0].(interface{}) 216 ret1, _ := ret[1].(error) 217 return ret0, ret1 218 } 219 220 // BulkInsert indicates an expected call of BulkInsert. 221 func (mr *MockImmutableGenericRepositoryInterfaceMockRecorder) BulkInsert(ctx, data interface{}) *gomock.Call { 222 mr.mock.ctrl.T.Helper() 223 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BulkInsert", reflect.TypeOf((*MockImmutableGenericRepositoryInterface)(nil).BulkInsert), ctx, data) 224 } 225 226 // FindAll mocks base method. 227 func (m *MockImmutableGenericRepositoryInterface) FindAll(ctx context.Context, params map[string]interface{}, conditionalOperations []ConditionalOperation, relationalOperations []RelationalOperation, page, limit int, result interface{}) (interface{}, error) { 228 m.ctrl.T.Helper() 229 ret := m.ctrl.Call(m, "FindAll", ctx, params, conditionalOperations, relationalOperations, page, limit, result) 230 ret0, _ := ret[0].(interface{}) 231 ret1, _ := ret[1].(error) 232 return ret0, ret1 233 } 234 235 // FindAll indicates an expected call of FindAll. 236 func (mr *MockImmutableGenericRepositoryInterfaceMockRecorder) FindAll(ctx, params, conditionalOperations, relationalOperations, page, limit, result interface{}) *gomock.Call { 237 mr.mock.ctrl.T.Helper() 238 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindAll", reflect.TypeOf((*MockImmutableGenericRepositoryInterface)(nil).FindAll), ctx, params, conditionalOperations, relationalOperations, page, limit, result) 239 } 240 241 // FindByID mocks base method. 242 func (m *MockImmutableGenericRepositoryInterface) FindByID(ctx context.Context, id uuid.UUID, result interface{}) (interface{}, error) { 243 m.ctrl.T.Helper() 244 ret := m.ctrl.Call(m, "FindByID", ctx, id, result) 245 ret0, _ := ret[0].(interface{}) 246 ret1, _ := ret[1].(error) 247 return ret0, ret1 248 } 249 250 // FindByID indicates an expected call of FindByID. 251 func (mr *MockImmutableGenericRepositoryInterfaceMockRecorder) FindByID(ctx, id, result interface{}) *gomock.Call { 252 mr.mock.ctrl.T.Helper() 253 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindByID", reflect.TypeOf((*MockImmutableGenericRepositoryInterface)(nil).FindByID), ctx, id, result) 254 } 255 256 // FindOne mocks base method. 257 func (m *MockImmutableGenericRepositoryInterface) FindOne(ctx context.Context, key string, value, result interface{}) (interface{}, error) { 258 m.ctrl.T.Helper() 259 ret := m.ctrl.Call(m, "FindOne", ctx, key, value, result) 260 ret0, _ := ret[0].(interface{}) 261 ret1, _ := ret[1].(error) 262 return ret0, ret1 263 } 264 265 // FindOne indicates an expected call of FindOne. 266 func (mr *MockImmutableGenericRepositoryInterfaceMockRecorder) FindOne(ctx, key, value, result interface{}) *gomock.Call { 267 mr.mock.ctrl.T.Helper() 268 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindOne", reflect.TypeOf((*MockImmutableGenericRepositoryInterface)(nil).FindOne), ctx, key, value, result) 269 } 270 271 // Insert mocks base method. 272 func (m *MockImmutableGenericRepositoryInterface) Insert(ctx context.Context, data interface{}) (interface{}, error) { 273 m.ctrl.T.Helper() 274 ret := m.ctrl.Call(m, "Insert", ctx, data) 275 ret0, _ := ret[0].(interface{}) 276 ret1, _ := ret[1].(error) 277 return ret0, ret1 278 } 279 280 // Insert indicates an expected call of Insert. 281 func (mr *MockImmutableGenericRepositoryInterfaceMockRecorder) Insert(ctx, data interface{}) *gomock.Call { 282 mr.mock.ctrl.T.Helper() 283 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Insert", reflect.TypeOf((*MockImmutableGenericRepositoryInterface)(nil).Insert), ctx, data) 284 } 285 286 // Query mocks base method. 287 func (m *MockImmutableGenericRepositoryInterface) Query(ctx context.Context, query string, params []interface{}, result interface{}) (interface{}, error) { 288 m.ctrl.T.Helper() 289 ret := m.ctrl.Call(m, "Query", ctx, query, params, result) 290 ret0, _ := ret[0].(interface{}) 291 ret1, _ := ret[1].(error) 292 return ret0, ret1 293 } 294 295 // Query indicates an expected call of Query. 296 func (mr *MockImmutableGenericRepositoryInterfaceMockRecorder) Query(ctx, query, params, result interface{}) *gomock.Call { 297 mr.mock.ctrl.T.Helper() 298 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Query", reflect.TypeOf((*MockImmutableGenericRepositoryInterface)(nil).Query), ctx, query, params, result) 299 } 300 301 // MockMutableGenericRepositoryInterface is a mock of MutableGenericRepositoryInterface interface. 302 type MockMutableGenericRepositoryInterface struct { 303 ctrl *gomock.Controller 304 recorder *MockMutableGenericRepositoryInterfaceMockRecorder 305 } 306 307 // MockMutableGenericRepositoryInterfaceMockRecorder is the mock recorder for MockMutableGenericRepositoryInterface. 308 type MockMutableGenericRepositoryInterfaceMockRecorder struct { 309 mock *MockMutableGenericRepositoryInterface 310 } 311 312 // NewMockMutableGenericRepositoryInterface creates a new mock instance. 313 func NewMockMutableGenericRepositoryInterface(ctrl *gomock.Controller) *MockMutableGenericRepositoryInterface { 314 mock := &MockMutableGenericRepositoryInterface{ctrl: ctrl} 315 mock.recorder = &MockMutableGenericRepositoryInterfaceMockRecorder{mock} 316 return mock 317 } 318 319 // EXPECT returns an object that allows the caller to indicate expected use. 320 func (m *MockMutableGenericRepositoryInterface) EXPECT() *MockMutableGenericRepositoryInterfaceMockRecorder { 321 return m.recorder 322 } 323 324 // BulkUpsert mocks base method. 325 func (m *MockMutableGenericRepositoryInterface) BulkUpsert(ctx context.Context, data interface{}) (interface{}, error) { 326 m.ctrl.T.Helper() 327 ret := m.ctrl.Call(m, "BulkUpsert", ctx, data) 328 ret0, _ := ret[0].(interface{}) 329 ret1, _ := ret[1].(error) 330 return ret0, ret1 331 } 332 333 // BulkUpsert indicates an expected call of BulkUpsert. 334 func (mr *MockMutableGenericRepositoryInterfaceMockRecorder) BulkUpsert(ctx, data interface{}) *gomock.Call { 335 mr.mock.ctrl.T.Helper() 336 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BulkUpsert", reflect.TypeOf((*MockMutableGenericRepositoryInterface)(nil).BulkUpsert), ctx, data) 337 } 338 339 // Delete mocks base method. 340 func (m *MockMutableGenericRepositoryInterface) Delete(ctx context.Context, data interface{}) (interface{}, error) { 341 m.ctrl.T.Helper() 342 ret := m.ctrl.Call(m, "Delete", ctx, data) 343 ret0, _ := ret[0].(interface{}) 344 ret1, _ := ret[1].(error) 345 return ret0, ret1 346 } 347 348 // Delete indicates an expected call of Delete. 349 func (mr *MockMutableGenericRepositoryInterfaceMockRecorder) Delete(ctx, data interface{}) *gomock.Call { 350 mr.mock.ctrl.T.Helper() 351 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockMutableGenericRepositoryInterface)(nil).Delete), ctx, data) 352 } 353 354 // FindAll mocks base method. 355 func (m *MockMutableGenericRepositoryInterface) FindAll(ctx context.Context, params map[string]interface{}, conditionalOperations []ConditionalOperation, relationalOperations []RelationalOperation, page, limit int, result interface{}) (interface{}, error) { 356 m.ctrl.T.Helper() 357 ret := m.ctrl.Call(m, "FindAll", ctx, params, conditionalOperations, relationalOperations, page, limit, result) 358 ret0, _ := ret[0].(interface{}) 359 ret1, _ := ret[1].(error) 360 return ret0, ret1 361 } 362 363 // FindAll indicates an expected call of FindAll. 364 func (mr *MockMutableGenericRepositoryInterfaceMockRecorder) FindAll(ctx, params, conditionalOperations, relationalOperations, page, limit, result interface{}) *gomock.Call { 365 mr.mock.ctrl.T.Helper() 366 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindAll", reflect.TypeOf((*MockMutableGenericRepositoryInterface)(nil).FindAll), ctx, params, conditionalOperations, relationalOperations, page, limit, result) 367 } 368 369 // FindByID mocks base method. 370 func (m *MockMutableGenericRepositoryInterface) FindByID(ctx context.Context, id uuid.UUID, result interface{}) (interface{}, error) { 371 m.ctrl.T.Helper() 372 ret := m.ctrl.Call(m, "FindByID", ctx, id, result) 373 ret0, _ := ret[0].(interface{}) 374 ret1, _ := ret[1].(error) 375 return ret0, ret1 376 } 377 378 // FindByID indicates an expected call of FindByID. 379 func (mr *MockMutableGenericRepositoryInterfaceMockRecorder) FindByID(ctx, id, result interface{}) *gomock.Call { 380 mr.mock.ctrl.T.Helper() 381 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindByID", reflect.TypeOf((*MockMutableGenericRepositoryInterface)(nil).FindByID), ctx, id, result) 382 } 383 384 // FindOne mocks base method. 385 func (m *MockMutableGenericRepositoryInterface) FindOne(ctx context.Context, key string, value, result interface{}) (interface{}, error) { 386 m.ctrl.T.Helper() 387 ret := m.ctrl.Call(m, "FindOne", ctx, key, value, result) 388 ret0, _ := ret[0].(interface{}) 389 ret1, _ := ret[1].(error) 390 return ret0, ret1 391 } 392 393 // FindOne indicates an expected call of FindOne. 394 func (mr *MockMutableGenericRepositoryInterfaceMockRecorder) FindOne(ctx, key, value, result interface{}) *gomock.Call { 395 mr.mock.ctrl.T.Helper() 396 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindOne", reflect.TypeOf((*MockMutableGenericRepositoryInterface)(nil).FindOne), ctx, key, value, result) 397 } 398 399 // Insert mocks base method. 400 func (m *MockMutableGenericRepositoryInterface) Insert(ctx context.Context, data interface{}) (interface{}, error) { 401 m.ctrl.T.Helper() 402 ret := m.ctrl.Call(m, "Insert", ctx, data) 403 ret0, _ := ret[0].(interface{}) 404 ret1, _ := ret[1].(error) 405 return ret0, ret1 406 } 407 408 // Insert indicates an expected call of Insert. 409 func (mr *MockMutableGenericRepositoryInterfaceMockRecorder) Insert(ctx, data interface{}) *gomock.Call { 410 mr.mock.ctrl.T.Helper() 411 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Insert", reflect.TypeOf((*MockMutableGenericRepositoryInterface)(nil).Insert), ctx, data) 412 } 413 414 // Query mocks base method. 415 func (m *MockMutableGenericRepositoryInterface) Query(ctx context.Context, query string, params []interface{}, result interface{}) (interface{}, error) { 416 m.ctrl.T.Helper() 417 ret := m.ctrl.Call(m, "Query", ctx, query, params, result) 418 ret0, _ := ret[0].(interface{}) 419 ret1, _ := ret[1].(error) 420 return ret0, ret1 421 } 422 423 // Query indicates an expected call of Query. 424 func (mr *MockMutableGenericRepositoryInterfaceMockRecorder) Query(ctx, query, params, result interface{}) *gomock.Call { 425 mr.mock.ctrl.T.Helper() 426 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Query", reflect.TypeOf((*MockMutableGenericRepositoryInterface)(nil).Query), ctx, query, params, result) 427 } 428 429 // Update mocks base method. 430 func (m *MockMutableGenericRepositoryInterface) Update(ctx context.Context, data interface{}) (interface{}, error) { 431 m.ctrl.T.Helper() 432 ret := m.ctrl.Call(m, "Update", ctx, data) 433 ret0, _ := ret[0].(interface{}) 434 ret1, _ := ret[1].(error) 435 return ret0, ret1 436 } 437 438 // Update indicates an expected call of Update. 439 func (mr *MockMutableGenericRepositoryInterfaceMockRecorder) Update(ctx, data interface{}) *gomock.Call { 440 mr.mock.ctrl.T.Helper() 441 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockMutableGenericRepositoryInterface)(nil).Update), ctx, data) 442 } 443 444 // Upsert mocks base method. 445 func (m *MockMutableGenericRepositoryInterface) Upsert(ctx context.Context, data interface{}) (interface{}, error) { 446 m.ctrl.T.Helper() 447 ret := m.ctrl.Call(m, "Upsert", ctx, data) 448 ret0, _ := ret[0].(interface{}) 449 ret1, _ := ret[1].(error) 450 return ret0, ret1 451 } 452 453 // Upsert indicates an expected call of Upsert. 454 func (mr *MockMutableGenericRepositoryInterfaceMockRecorder) Upsert(ctx, data interface{}) *gomock.Call { 455 mr.mock.ctrl.T.Helper() 456 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Upsert", reflect.TypeOf((*MockMutableGenericRepositoryInterface)(nil).Upsert), ctx, data) 457 }