github.com/iotexproject/iotex-core@v1.14.1-rc1/test/mock/mock_blockindex/mock_blockindex.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: ./blockindex/bloomfilterindexer.go 3 4 // Package mock_blockindex is a generated GoMock package. 5 package mock_blockindex 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 gomock "github.com/golang/mock/gomock" 12 bloom "github.com/iotexproject/go-pkgs/bloom" 13 logfilter "github.com/iotexproject/iotex-core/api/logfilter" 14 block "github.com/iotexproject/iotex-core/blockchain/block" 15 ) 16 17 // MockBloomFilterIndexer is a mock of BloomFilterIndexer interface. 18 type MockBloomFilterIndexer struct { 19 ctrl *gomock.Controller 20 recorder *MockBloomFilterIndexerMockRecorder 21 } 22 23 // MockBloomFilterIndexerMockRecorder is the mock recorder for MockBloomFilterIndexer. 24 type MockBloomFilterIndexerMockRecorder struct { 25 mock *MockBloomFilterIndexer 26 } 27 28 // NewMockBloomFilterIndexer creates a new mock instance. 29 func NewMockBloomFilterIndexer(ctrl *gomock.Controller) *MockBloomFilterIndexer { 30 mock := &MockBloomFilterIndexer{ctrl: ctrl} 31 mock.recorder = &MockBloomFilterIndexerMockRecorder{mock} 32 return mock 33 } 34 35 // EXPECT returns an object that allows the caller to indicate expected use. 36 func (m *MockBloomFilterIndexer) EXPECT() *MockBloomFilterIndexerMockRecorder { 37 return m.recorder 38 } 39 40 // BlockFilterByHeight mocks base method. 41 func (m *MockBloomFilterIndexer) BlockFilterByHeight(arg0 uint64) (bloom.BloomFilter, error) { 42 m.ctrl.T.Helper() 43 ret := m.ctrl.Call(m, "BlockFilterByHeight", arg0) 44 ret0, _ := ret[0].(bloom.BloomFilter) 45 ret1, _ := ret[1].(error) 46 return ret0, ret1 47 } 48 49 // BlockFilterByHeight indicates an expected call of BlockFilterByHeight. 50 func (mr *MockBloomFilterIndexerMockRecorder) BlockFilterByHeight(arg0 interface{}) *gomock.Call { 51 mr.mock.ctrl.T.Helper() 52 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BlockFilterByHeight", reflect.TypeOf((*MockBloomFilterIndexer)(nil).BlockFilterByHeight), arg0) 53 } 54 55 // DeleteTipBlock mocks base method. 56 func (m *MockBloomFilterIndexer) DeleteTipBlock(arg0 context.Context, arg1 *block.Block) error { 57 m.ctrl.T.Helper() 58 ret := m.ctrl.Call(m, "DeleteTipBlock", arg0, arg1) 59 ret0, _ := ret[0].(error) 60 return ret0 61 } 62 63 // DeleteTipBlock indicates an expected call of DeleteTipBlock. 64 func (mr *MockBloomFilterIndexerMockRecorder) DeleteTipBlock(arg0, arg1 interface{}) *gomock.Call { 65 mr.mock.ctrl.T.Helper() 66 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTipBlock", reflect.TypeOf((*MockBloomFilterIndexer)(nil).DeleteTipBlock), arg0, arg1) 67 } 68 69 // FilterBlocksInRange mocks base method. 70 func (m *MockBloomFilterIndexer) FilterBlocksInRange(arg0 *logfilter.LogFilter, arg1, arg2, arg3 uint64) ([]uint64, error) { 71 m.ctrl.T.Helper() 72 ret := m.ctrl.Call(m, "FilterBlocksInRange", arg0, arg1, arg2, arg3) 73 ret0, _ := ret[0].([]uint64) 74 ret1, _ := ret[1].(error) 75 return ret0, ret1 76 } 77 78 // FilterBlocksInRange indicates an expected call of FilterBlocksInRange. 79 func (mr *MockBloomFilterIndexerMockRecorder) FilterBlocksInRange(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 80 mr.mock.ctrl.T.Helper() 81 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FilterBlocksInRange", reflect.TypeOf((*MockBloomFilterIndexer)(nil).FilterBlocksInRange), arg0, arg1, arg2, arg3) 82 } 83 84 // Height mocks base method. 85 func (m *MockBloomFilterIndexer) Height() (uint64, error) { 86 m.ctrl.T.Helper() 87 ret := m.ctrl.Call(m, "Height") 88 ret0, _ := ret[0].(uint64) 89 ret1, _ := ret[1].(error) 90 return ret0, ret1 91 } 92 93 // Height indicates an expected call of Height. 94 func (mr *MockBloomFilterIndexerMockRecorder) Height() *gomock.Call { 95 mr.mock.ctrl.T.Helper() 96 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Height", reflect.TypeOf((*MockBloomFilterIndexer)(nil).Height)) 97 } 98 99 // PutBlock mocks base method. 100 func (m *MockBloomFilterIndexer) PutBlock(arg0 context.Context, arg1 *block.Block) error { 101 m.ctrl.T.Helper() 102 ret := m.ctrl.Call(m, "PutBlock", arg0, arg1) 103 ret0, _ := ret[0].(error) 104 return ret0 105 } 106 107 // PutBlock indicates an expected call of PutBlock. 108 func (mr *MockBloomFilterIndexerMockRecorder) PutBlock(arg0, arg1 interface{}) *gomock.Call { 109 mr.mock.ctrl.T.Helper() 110 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutBlock", reflect.TypeOf((*MockBloomFilterIndexer)(nil).PutBlock), arg0, arg1) 111 } 112 113 // RangeBloomFilterNumElements mocks base method. 114 func (m *MockBloomFilterIndexer) RangeBloomFilterNumElements() uint64 { 115 m.ctrl.T.Helper() 116 ret := m.ctrl.Call(m, "RangeBloomFilterNumElements") 117 ret0, _ := ret[0].(uint64) 118 return ret0 119 } 120 121 // RangeBloomFilterNumElements indicates an expected call of RangeBloomFilterNumElements. 122 func (mr *MockBloomFilterIndexerMockRecorder) RangeBloomFilterNumElements() *gomock.Call { 123 mr.mock.ctrl.T.Helper() 124 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RangeBloomFilterNumElements", reflect.TypeOf((*MockBloomFilterIndexer)(nil).RangeBloomFilterNumElements)) 125 } 126 127 // Start mocks base method. 128 func (m *MockBloomFilterIndexer) Start(ctx context.Context) error { 129 m.ctrl.T.Helper() 130 ret := m.ctrl.Call(m, "Start", ctx) 131 ret0, _ := ret[0].(error) 132 return ret0 133 } 134 135 // Start indicates an expected call of Start. 136 func (mr *MockBloomFilterIndexerMockRecorder) Start(ctx interface{}) *gomock.Call { 137 mr.mock.ctrl.T.Helper() 138 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockBloomFilterIndexer)(nil).Start), ctx) 139 } 140 141 // Stop mocks base method. 142 func (m *MockBloomFilterIndexer) Stop(ctx context.Context) error { 143 m.ctrl.T.Helper() 144 ret := m.ctrl.Call(m, "Stop", ctx) 145 ret0, _ := ret[0].(error) 146 return ret0 147 } 148 149 // Stop indicates an expected call of Stop. 150 func (mr *MockBloomFilterIndexerMockRecorder) Stop(ctx interface{}) *gomock.Call { 151 mr.mock.ctrl.T.Helper() 152 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockBloomFilterIndexer)(nil).Stop), ctx) 153 }