github.com/iotexproject/iotex-core@v1.14.1-rc1/db/mock_kvstore.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: ./db/kvstore.go 3 4 // Package db is a generated GoMock package. 5 package db 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 gomock "github.com/golang/mock/gomock" 12 batch "github.com/iotexproject/iotex-core/db/batch" 13 ) 14 15 // MockKVStoreBasic is a mock of KVStoreBasic interface. 16 type MockKVStoreBasic struct { 17 ctrl *gomock.Controller 18 recorder *MockKVStoreBasicMockRecorder 19 } 20 21 // MockKVStoreBasicMockRecorder is the mock recorder for MockKVStoreBasic. 22 type MockKVStoreBasicMockRecorder struct { 23 mock *MockKVStoreBasic 24 } 25 26 // NewMockKVStoreBasic creates a new mock instance. 27 func NewMockKVStoreBasic(ctrl *gomock.Controller) *MockKVStoreBasic { 28 mock := &MockKVStoreBasic{ctrl: ctrl} 29 mock.recorder = &MockKVStoreBasicMockRecorder{mock} 30 return mock 31 } 32 33 // EXPECT returns an object that allows the caller to indicate expected use. 34 func (m *MockKVStoreBasic) EXPECT() *MockKVStoreBasicMockRecorder { 35 return m.recorder 36 } 37 38 // Delete mocks base method. 39 func (m *MockKVStoreBasic) Delete(arg0 string, arg1 []byte) error { 40 m.ctrl.T.Helper() 41 ret := m.ctrl.Call(m, "Delete", arg0, arg1) 42 ret0, _ := ret[0].(error) 43 return ret0 44 } 45 46 // Delete indicates an expected call of Delete. 47 func (mr *MockKVStoreBasicMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call { 48 mr.mock.ctrl.T.Helper() 49 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockKVStoreBasic)(nil).Delete), arg0, arg1) 50 } 51 52 // Get mocks base method. 53 func (m *MockKVStoreBasic) Get(arg0 string, arg1 []byte) ([]byte, error) { 54 m.ctrl.T.Helper() 55 ret := m.ctrl.Call(m, "Get", arg0, arg1) 56 ret0, _ := ret[0].([]byte) 57 ret1, _ := ret[1].(error) 58 return ret0, ret1 59 } 60 61 // Get indicates an expected call of Get. 62 func (mr *MockKVStoreBasicMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call { 63 mr.mock.ctrl.T.Helper() 64 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockKVStoreBasic)(nil).Get), arg0, arg1) 65 } 66 67 // Put mocks base method. 68 func (m *MockKVStoreBasic) Put(arg0 string, arg1, arg2 []byte) error { 69 m.ctrl.T.Helper() 70 ret := m.ctrl.Call(m, "Put", arg0, arg1, arg2) 71 ret0, _ := ret[0].(error) 72 return ret0 73 } 74 75 // Put indicates an expected call of Put. 76 func (mr *MockKVStoreBasicMockRecorder) Put(arg0, arg1, arg2 interface{}) *gomock.Call { 77 mr.mock.ctrl.T.Helper() 78 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockKVStoreBasic)(nil).Put), arg0, arg1, arg2) 79 } 80 81 // Start mocks base method. 82 func (m *MockKVStoreBasic) Start(arg0 context.Context) error { 83 m.ctrl.T.Helper() 84 ret := m.ctrl.Call(m, "Start", arg0) 85 ret0, _ := ret[0].(error) 86 return ret0 87 } 88 89 // Start indicates an expected call of Start. 90 func (mr *MockKVStoreBasicMockRecorder) Start(arg0 interface{}) *gomock.Call { 91 mr.mock.ctrl.T.Helper() 92 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockKVStoreBasic)(nil).Start), arg0) 93 } 94 95 // Stop mocks base method. 96 func (m *MockKVStoreBasic) Stop(arg0 context.Context) error { 97 m.ctrl.T.Helper() 98 ret := m.ctrl.Call(m, "Stop", arg0) 99 ret0, _ := ret[0].(error) 100 return ret0 101 } 102 103 // Stop indicates an expected call of Stop. 104 func (mr *MockKVStoreBasicMockRecorder) Stop(arg0 interface{}) *gomock.Call { 105 mr.mock.ctrl.T.Helper() 106 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockKVStoreBasic)(nil).Stop), arg0) 107 } 108 109 // MockKVStore is a mock of KVStore interface. 110 type MockKVStore struct { 111 ctrl *gomock.Controller 112 recorder *MockKVStoreMockRecorder 113 } 114 115 // MockKVStoreMockRecorder is the mock recorder for MockKVStore. 116 type MockKVStoreMockRecorder struct { 117 mock *MockKVStore 118 } 119 120 // NewMockKVStore creates a new mock instance. 121 func NewMockKVStore(ctrl *gomock.Controller) *MockKVStore { 122 mock := &MockKVStore{ctrl: ctrl} 123 mock.recorder = &MockKVStoreMockRecorder{mock} 124 return mock 125 } 126 127 // EXPECT returns an object that allows the caller to indicate expected use. 128 func (m *MockKVStore) EXPECT() *MockKVStoreMockRecorder { 129 return m.recorder 130 } 131 132 // Delete mocks base method. 133 func (m *MockKVStore) Delete(arg0 string, arg1 []byte) error { 134 m.ctrl.T.Helper() 135 ret := m.ctrl.Call(m, "Delete", arg0, arg1) 136 ret0, _ := ret[0].(error) 137 return ret0 138 } 139 140 // Delete indicates an expected call of Delete. 141 func (mr *MockKVStoreMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call { 142 mr.mock.ctrl.T.Helper() 143 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockKVStore)(nil).Delete), arg0, arg1) 144 } 145 146 // Filter mocks base method. 147 func (m *MockKVStore) Filter(arg0 string, arg1 Condition, arg2, arg3 []byte) ([][]byte, [][]byte, error) { 148 m.ctrl.T.Helper() 149 ret := m.ctrl.Call(m, "Filter", arg0, arg1, arg2, arg3) 150 ret0, _ := ret[0].([][]byte) 151 ret1, _ := ret[1].([][]byte) 152 ret2, _ := ret[2].(error) 153 return ret0, ret1, ret2 154 } 155 156 // Filter indicates an expected call of Filter. 157 func (mr *MockKVStoreMockRecorder) Filter(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 158 mr.mock.ctrl.T.Helper() 159 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Filter", reflect.TypeOf((*MockKVStore)(nil).Filter), arg0, arg1, arg2, arg3) 160 } 161 162 // Get mocks base method. 163 func (m *MockKVStore) Get(arg0 string, arg1 []byte) ([]byte, error) { 164 m.ctrl.T.Helper() 165 ret := m.ctrl.Call(m, "Get", arg0, arg1) 166 ret0, _ := ret[0].([]byte) 167 ret1, _ := ret[1].(error) 168 return ret0, ret1 169 } 170 171 // Get indicates an expected call of Get. 172 func (mr *MockKVStoreMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call { 173 mr.mock.ctrl.T.Helper() 174 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockKVStore)(nil).Get), arg0, arg1) 175 } 176 177 // Put mocks base method. 178 func (m *MockKVStore) Put(arg0 string, arg1, arg2 []byte) error { 179 m.ctrl.T.Helper() 180 ret := m.ctrl.Call(m, "Put", arg0, arg1, arg2) 181 ret0, _ := ret[0].(error) 182 return ret0 183 } 184 185 // Put indicates an expected call of Put. 186 func (mr *MockKVStoreMockRecorder) Put(arg0, arg1, arg2 interface{}) *gomock.Call { 187 mr.mock.ctrl.T.Helper() 188 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockKVStore)(nil).Put), arg0, arg1, arg2) 189 } 190 191 // Start mocks base method. 192 func (m *MockKVStore) Start(arg0 context.Context) error { 193 m.ctrl.T.Helper() 194 ret := m.ctrl.Call(m, "Start", arg0) 195 ret0, _ := ret[0].(error) 196 return ret0 197 } 198 199 // Start indicates an expected call of Start. 200 func (mr *MockKVStoreMockRecorder) Start(arg0 interface{}) *gomock.Call { 201 mr.mock.ctrl.T.Helper() 202 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockKVStore)(nil).Start), arg0) 203 } 204 205 // Stop mocks base method. 206 func (m *MockKVStore) Stop(arg0 context.Context) error { 207 m.ctrl.T.Helper() 208 ret := m.ctrl.Call(m, "Stop", arg0) 209 ret0, _ := ret[0].(error) 210 return ret0 211 } 212 213 // Stop indicates an expected call of Stop. 214 func (mr *MockKVStoreMockRecorder) Stop(arg0 interface{}) *gomock.Call { 215 mr.mock.ctrl.T.Helper() 216 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockKVStore)(nil).Stop), arg0) 217 } 218 219 // WriteBatch mocks base method. 220 func (m *MockKVStore) WriteBatch(arg0 batch.KVStoreBatch) error { 221 m.ctrl.T.Helper() 222 ret := m.ctrl.Call(m, "WriteBatch", arg0) 223 ret0, _ := ret[0].(error) 224 return ret0 225 } 226 227 // WriteBatch indicates an expected call of WriteBatch. 228 func (mr *MockKVStoreMockRecorder) WriteBatch(arg0 interface{}) *gomock.Call { 229 mr.mock.ctrl.T.Helper() 230 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteBatch", reflect.TypeOf((*MockKVStore)(nil).WriteBatch), arg0) 231 } 232 233 // MockKVStoreWithRange is a mock of KVStoreWithRange interface. 234 type MockKVStoreWithRange struct { 235 ctrl *gomock.Controller 236 recorder *MockKVStoreWithRangeMockRecorder 237 } 238 239 // MockKVStoreWithRangeMockRecorder is the mock recorder for MockKVStoreWithRange. 240 type MockKVStoreWithRangeMockRecorder struct { 241 mock *MockKVStoreWithRange 242 } 243 244 // NewMockKVStoreWithRange creates a new mock instance. 245 func NewMockKVStoreWithRange(ctrl *gomock.Controller) *MockKVStoreWithRange { 246 mock := &MockKVStoreWithRange{ctrl: ctrl} 247 mock.recorder = &MockKVStoreWithRangeMockRecorder{mock} 248 return mock 249 } 250 251 // EXPECT returns an object that allows the caller to indicate expected use. 252 func (m *MockKVStoreWithRange) EXPECT() *MockKVStoreWithRangeMockRecorder { 253 return m.recorder 254 } 255 256 // Delete mocks base method. 257 func (m *MockKVStoreWithRange) Delete(arg0 string, arg1 []byte) error { 258 m.ctrl.T.Helper() 259 ret := m.ctrl.Call(m, "Delete", arg0, arg1) 260 ret0, _ := ret[0].(error) 261 return ret0 262 } 263 264 // Delete indicates an expected call of Delete. 265 func (mr *MockKVStoreWithRangeMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call { 266 mr.mock.ctrl.T.Helper() 267 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockKVStoreWithRange)(nil).Delete), arg0, arg1) 268 } 269 270 // Filter mocks base method. 271 func (m *MockKVStoreWithRange) Filter(arg0 string, arg1 Condition, arg2, arg3 []byte) ([][]byte, [][]byte, error) { 272 m.ctrl.T.Helper() 273 ret := m.ctrl.Call(m, "Filter", arg0, arg1, arg2, arg3) 274 ret0, _ := ret[0].([][]byte) 275 ret1, _ := ret[1].([][]byte) 276 ret2, _ := ret[2].(error) 277 return ret0, ret1, ret2 278 } 279 280 // Filter indicates an expected call of Filter. 281 func (mr *MockKVStoreWithRangeMockRecorder) Filter(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 282 mr.mock.ctrl.T.Helper() 283 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Filter", reflect.TypeOf((*MockKVStoreWithRange)(nil).Filter), arg0, arg1, arg2, arg3) 284 } 285 286 // Get mocks base method. 287 func (m *MockKVStoreWithRange) Get(arg0 string, arg1 []byte) ([]byte, error) { 288 m.ctrl.T.Helper() 289 ret := m.ctrl.Call(m, "Get", arg0, arg1) 290 ret0, _ := ret[0].([]byte) 291 ret1, _ := ret[1].(error) 292 return ret0, ret1 293 } 294 295 // Get indicates an expected call of Get. 296 func (mr *MockKVStoreWithRangeMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call { 297 mr.mock.ctrl.T.Helper() 298 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockKVStoreWithRange)(nil).Get), arg0, arg1) 299 } 300 301 // Put mocks base method. 302 func (m *MockKVStoreWithRange) Put(arg0 string, arg1, arg2 []byte) error { 303 m.ctrl.T.Helper() 304 ret := m.ctrl.Call(m, "Put", arg0, arg1, arg2) 305 ret0, _ := ret[0].(error) 306 return ret0 307 } 308 309 // Put indicates an expected call of Put. 310 func (mr *MockKVStoreWithRangeMockRecorder) Put(arg0, arg1, arg2 interface{}) *gomock.Call { 311 mr.mock.ctrl.T.Helper() 312 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockKVStoreWithRange)(nil).Put), arg0, arg1, arg2) 313 } 314 315 // Range mocks base method. 316 func (m *MockKVStoreWithRange) Range(arg0 string, arg1 []byte, arg2 uint64) ([][]byte, error) { 317 m.ctrl.T.Helper() 318 ret := m.ctrl.Call(m, "Range", arg0, arg1, arg2) 319 ret0, _ := ret[0].([][]byte) 320 ret1, _ := ret[1].(error) 321 return ret0, ret1 322 } 323 324 // Range indicates an expected call of Range. 325 func (mr *MockKVStoreWithRangeMockRecorder) Range(arg0, arg1, arg2 interface{}) *gomock.Call { 326 mr.mock.ctrl.T.Helper() 327 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Range", reflect.TypeOf((*MockKVStoreWithRange)(nil).Range), arg0, arg1, arg2) 328 } 329 330 // Start mocks base method. 331 func (m *MockKVStoreWithRange) Start(arg0 context.Context) error { 332 m.ctrl.T.Helper() 333 ret := m.ctrl.Call(m, "Start", arg0) 334 ret0, _ := ret[0].(error) 335 return ret0 336 } 337 338 // Start indicates an expected call of Start. 339 func (mr *MockKVStoreWithRangeMockRecorder) Start(arg0 interface{}) *gomock.Call { 340 mr.mock.ctrl.T.Helper() 341 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockKVStoreWithRange)(nil).Start), arg0) 342 } 343 344 // Stop mocks base method. 345 func (m *MockKVStoreWithRange) Stop(arg0 context.Context) error { 346 m.ctrl.T.Helper() 347 ret := m.ctrl.Call(m, "Stop", arg0) 348 ret0, _ := ret[0].(error) 349 return ret0 350 } 351 352 // Stop indicates an expected call of Stop. 353 func (mr *MockKVStoreWithRangeMockRecorder) Stop(arg0 interface{}) *gomock.Call { 354 mr.mock.ctrl.T.Helper() 355 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockKVStoreWithRange)(nil).Stop), arg0) 356 } 357 358 // WriteBatch mocks base method. 359 func (m *MockKVStoreWithRange) WriteBatch(arg0 batch.KVStoreBatch) error { 360 m.ctrl.T.Helper() 361 ret := m.ctrl.Call(m, "WriteBatch", arg0) 362 ret0, _ := ret[0].(error) 363 return ret0 364 } 365 366 // WriteBatch indicates an expected call of WriteBatch. 367 func (mr *MockKVStoreWithRangeMockRecorder) WriteBatch(arg0 interface{}) *gomock.Call { 368 mr.mock.ctrl.T.Helper() 369 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteBatch", reflect.TypeOf((*MockKVStoreWithRange)(nil).WriteBatch), arg0) 370 } 371 372 // MockKVStoreForRangeIndex is a mock of KVStoreForRangeIndex interface. 373 type MockKVStoreForRangeIndex struct { 374 ctrl *gomock.Controller 375 recorder *MockKVStoreForRangeIndexMockRecorder 376 } 377 378 // MockKVStoreForRangeIndexMockRecorder is the mock recorder for MockKVStoreForRangeIndex. 379 type MockKVStoreForRangeIndexMockRecorder struct { 380 mock *MockKVStoreForRangeIndex 381 } 382 383 // NewMockKVStoreForRangeIndex creates a new mock instance. 384 func NewMockKVStoreForRangeIndex(ctrl *gomock.Controller) *MockKVStoreForRangeIndex { 385 mock := &MockKVStoreForRangeIndex{ctrl: ctrl} 386 mock.recorder = &MockKVStoreForRangeIndexMockRecorder{mock} 387 return mock 388 } 389 390 // EXPECT returns an object that allows the caller to indicate expected use. 391 func (m *MockKVStoreForRangeIndex) EXPECT() *MockKVStoreForRangeIndexMockRecorder { 392 return m.recorder 393 } 394 395 // Delete mocks base method. 396 func (m *MockKVStoreForRangeIndex) Delete(arg0 string, arg1 []byte) error { 397 m.ctrl.T.Helper() 398 ret := m.ctrl.Call(m, "Delete", arg0, arg1) 399 ret0, _ := ret[0].(error) 400 return ret0 401 } 402 403 // Delete indicates an expected call of Delete. 404 func (mr *MockKVStoreForRangeIndexMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call { 405 mr.mock.ctrl.T.Helper() 406 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockKVStoreForRangeIndex)(nil).Delete), arg0, arg1) 407 } 408 409 // Filter mocks base method. 410 func (m *MockKVStoreForRangeIndex) Filter(arg0 string, arg1 Condition, arg2, arg3 []byte) ([][]byte, [][]byte, error) { 411 m.ctrl.T.Helper() 412 ret := m.ctrl.Call(m, "Filter", arg0, arg1, arg2, arg3) 413 ret0, _ := ret[0].([][]byte) 414 ret1, _ := ret[1].([][]byte) 415 ret2, _ := ret[2].(error) 416 return ret0, ret1, ret2 417 } 418 419 // Filter indicates an expected call of Filter. 420 func (mr *MockKVStoreForRangeIndexMockRecorder) Filter(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 421 mr.mock.ctrl.T.Helper() 422 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Filter", reflect.TypeOf((*MockKVStoreForRangeIndex)(nil).Filter), arg0, arg1, arg2, arg3) 423 } 424 425 // Get mocks base method. 426 func (m *MockKVStoreForRangeIndex) Get(arg0 string, arg1 []byte) ([]byte, error) { 427 m.ctrl.T.Helper() 428 ret := m.ctrl.Call(m, "Get", arg0, arg1) 429 ret0, _ := ret[0].([]byte) 430 ret1, _ := ret[1].(error) 431 return ret0, ret1 432 } 433 434 // Get indicates an expected call of Get. 435 func (mr *MockKVStoreForRangeIndexMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call { 436 mr.mock.ctrl.T.Helper() 437 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockKVStoreForRangeIndex)(nil).Get), arg0, arg1) 438 } 439 440 // GetBucketByPrefix mocks base method. 441 func (m *MockKVStoreForRangeIndex) GetBucketByPrefix(arg0 []byte) ([][]byte, error) { 442 m.ctrl.T.Helper() 443 ret := m.ctrl.Call(m, "GetBucketByPrefix", arg0) 444 ret0, _ := ret[0].([][]byte) 445 ret1, _ := ret[1].(error) 446 return ret0, ret1 447 } 448 449 // GetBucketByPrefix indicates an expected call of GetBucketByPrefix. 450 func (mr *MockKVStoreForRangeIndexMockRecorder) GetBucketByPrefix(arg0 interface{}) *gomock.Call { 451 mr.mock.ctrl.T.Helper() 452 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBucketByPrefix", reflect.TypeOf((*MockKVStoreForRangeIndex)(nil).GetBucketByPrefix), arg0) 453 } 454 455 // GetKeyByPrefix mocks base method. 456 func (m *MockKVStoreForRangeIndex) GetKeyByPrefix(namespace, prefix []byte) ([][]byte, error) { 457 m.ctrl.T.Helper() 458 ret := m.ctrl.Call(m, "GetKeyByPrefix", namespace, prefix) 459 ret0, _ := ret[0].([][]byte) 460 ret1, _ := ret[1].(error) 461 return ret0, ret1 462 } 463 464 // GetKeyByPrefix indicates an expected call of GetKeyByPrefix. 465 func (mr *MockKVStoreForRangeIndexMockRecorder) GetKeyByPrefix(namespace, prefix interface{}) *gomock.Call { 466 mr.mock.ctrl.T.Helper() 467 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetKeyByPrefix", reflect.TypeOf((*MockKVStoreForRangeIndex)(nil).GetKeyByPrefix), namespace, prefix) 468 } 469 470 // Insert mocks base method. 471 func (m *MockKVStoreForRangeIndex) Insert(arg0 []byte, arg1 uint64, arg2 []byte) error { 472 m.ctrl.T.Helper() 473 ret := m.ctrl.Call(m, "Insert", arg0, arg1, arg2) 474 ret0, _ := ret[0].(error) 475 return ret0 476 } 477 478 // Insert indicates an expected call of Insert. 479 func (mr *MockKVStoreForRangeIndexMockRecorder) Insert(arg0, arg1, arg2 interface{}) *gomock.Call { 480 mr.mock.ctrl.T.Helper() 481 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Insert", reflect.TypeOf((*MockKVStoreForRangeIndex)(nil).Insert), arg0, arg1, arg2) 482 } 483 484 // Purge mocks base method. 485 func (m *MockKVStoreForRangeIndex) Purge(arg0 []byte, arg1 uint64) error { 486 m.ctrl.T.Helper() 487 ret := m.ctrl.Call(m, "Purge", arg0, arg1) 488 ret0, _ := ret[0].(error) 489 return ret0 490 } 491 492 // Purge indicates an expected call of Purge. 493 func (mr *MockKVStoreForRangeIndexMockRecorder) Purge(arg0, arg1 interface{}) *gomock.Call { 494 mr.mock.ctrl.T.Helper() 495 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Purge", reflect.TypeOf((*MockKVStoreForRangeIndex)(nil).Purge), arg0, arg1) 496 } 497 498 // Put mocks base method. 499 func (m *MockKVStoreForRangeIndex) Put(arg0 string, arg1, arg2 []byte) error { 500 m.ctrl.T.Helper() 501 ret := m.ctrl.Call(m, "Put", arg0, arg1, arg2) 502 ret0, _ := ret[0].(error) 503 return ret0 504 } 505 506 // Put indicates an expected call of Put. 507 func (mr *MockKVStoreForRangeIndexMockRecorder) Put(arg0, arg1, arg2 interface{}) *gomock.Call { 508 mr.mock.ctrl.T.Helper() 509 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockKVStoreForRangeIndex)(nil).Put), arg0, arg1, arg2) 510 } 511 512 // Remove mocks base method. 513 func (m *MockKVStoreForRangeIndex) Remove(arg0 []byte, arg1 uint64) error { 514 m.ctrl.T.Helper() 515 ret := m.ctrl.Call(m, "Remove", arg0, arg1) 516 ret0, _ := ret[0].(error) 517 return ret0 518 } 519 520 // Remove indicates an expected call of Remove. 521 func (mr *MockKVStoreForRangeIndexMockRecorder) Remove(arg0, arg1 interface{}) *gomock.Call { 522 mr.mock.ctrl.T.Helper() 523 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Remove", reflect.TypeOf((*MockKVStoreForRangeIndex)(nil).Remove), arg0, arg1) 524 } 525 526 // SeekNext mocks base method. 527 func (m *MockKVStoreForRangeIndex) SeekNext(arg0 []byte, arg1 uint64) ([]byte, error) { 528 m.ctrl.T.Helper() 529 ret := m.ctrl.Call(m, "SeekNext", arg0, arg1) 530 ret0, _ := ret[0].([]byte) 531 ret1, _ := ret[1].(error) 532 return ret0, ret1 533 } 534 535 // SeekNext indicates an expected call of SeekNext. 536 func (mr *MockKVStoreForRangeIndexMockRecorder) SeekNext(arg0, arg1 interface{}) *gomock.Call { 537 mr.mock.ctrl.T.Helper() 538 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SeekNext", reflect.TypeOf((*MockKVStoreForRangeIndex)(nil).SeekNext), arg0, arg1) 539 } 540 541 // SeekPrev mocks base method. 542 func (m *MockKVStoreForRangeIndex) SeekPrev(arg0 []byte, arg1 uint64) ([]byte, error) { 543 m.ctrl.T.Helper() 544 ret := m.ctrl.Call(m, "SeekPrev", arg0, arg1) 545 ret0, _ := ret[0].([]byte) 546 ret1, _ := ret[1].(error) 547 return ret0, ret1 548 } 549 550 // SeekPrev indicates an expected call of SeekPrev. 551 func (mr *MockKVStoreForRangeIndexMockRecorder) SeekPrev(arg0, arg1 interface{}) *gomock.Call { 552 mr.mock.ctrl.T.Helper() 553 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SeekPrev", reflect.TypeOf((*MockKVStoreForRangeIndex)(nil).SeekPrev), arg0, arg1) 554 } 555 556 // Start mocks base method. 557 func (m *MockKVStoreForRangeIndex) Start(arg0 context.Context) error { 558 m.ctrl.T.Helper() 559 ret := m.ctrl.Call(m, "Start", arg0) 560 ret0, _ := ret[0].(error) 561 return ret0 562 } 563 564 // Start indicates an expected call of Start. 565 func (mr *MockKVStoreForRangeIndexMockRecorder) Start(arg0 interface{}) *gomock.Call { 566 mr.mock.ctrl.T.Helper() 567 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockKVStoreForRangeIndex)(nil).Start), arg0) 568 } 569 570 // Stop mocks base method. 571 func (m *MockKVStoreForRangeIndex) Stop(arg0 context.Context) error { 572 m.ctrl.T.Helper() 573 ret := m.ctrl.Call(m, "Stop", arg0) 574 ret0, _ := ret[0].(error) 575 return ret0 576 } 577 578 // Stop indicates an expected call of Stop. 579 func (mr *MockKVStoreForRangeIndexMockRecorder) Stop(arg0 interface{}) *gomock.Call { 580 mr.mock.ctrl.T.Helper() 581 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockKVStoreForRangeIndex)(nil).Stop), arg0) 582 } 583 584 // WriteBatch mocks base method. 585 func (m *MockKVStoreForRangeIndex) WriteBatch(arg0 batch.KVStoreBatch) error { 586 m.ctrl.T.Helper() 587 ret := m.ctrl.Call(m, "WriteBatch", arg0) 588 ret0, _ := ret[0].(error) 589 return ret0 590 } 591 592 // WriteBatch indicates an expected call of WriteBatch. 593 func (mr *MockKVStoreForRangeIndexMockRecorder) WriteBatch(arg0 interface{}) *gomock.Call { 594 mr.mock.ctrl.T.Helper() 595 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteBatch", reflect.TypeOf((*MockKVStoreForRangeIndex)(nil).WriteBatch), arg0) 596 }