github.com/klaytn/klaytn@v1.12.1/node/sc/bridgeTxPool_mock_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/klaytn/klaytn/node/sc (interfaces: BridgeTxPool) 3 4 // Package sc is a generated GoMock package. 5 package sc 6 7 import ( 8 reflect "reflect" 9 10 gomock "github.com/golang/mock/gomock" 11 types "github.com/klaytn/klaytn/blockchain/types" 12 common "github.com/klaytn/klaytn/common" 13 ) 14 15 // MockBridgeTxPool is a mock of BridgeTxPool interface 16 type MockBridgeTxPool struct { 17 ctrl *gomock.Controller 18 recorder *MockBridgeTxPoolMockRecorder 19 } 20 21 // MockBridgeTxPoolMockRecorder is the mock recorder for MockBridgeTxPool 22 type MockBridgeTxPoolMockRecorder struct { 23 mock *MockBridgeTxPool 24 } 25 26 // NewMockBridgeTxPool creates a new mock instance 27 func NewMockBridgeTxPool(ctrl *gomock.Controller) *MockBridgeTxPool { 28 mock := &MockBridgeTxPool{ctrl: ctrl} 29 mock.recorder = &MockBridgeTxPoolMockRecorder{mock} 30 return mock 31 } 32 33 // EXPECT returns an object that allows the caller to indicate expected use 34 func (m *MockBridgeTxPool) EXPECT() *MockBridgeTxPoolMockRecorder { 35 return m.recorder 36 } 37 38 // AddLocal mocks base method 39 func (m *MockBridgeTxPool) AddLocal(arg0 *types.Transaction) error { 40 m.ctrl.T.Helper() 41 ret := m.ctrl.Call(m, "AddLocal", arg0) 42 ret0, _ := ret[0].(error) 43 return ret0 44 } 45 46 // AddLocal indicates an expected call of AddLocal 47 func (mr *MockBridgeTxPoolMockRecorder) AddLocal(arg0 interface{}) *gomock.Call { 48 mr.mock.ctrl.T.Helper() 49 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddLocal", reflect.TypeOf((*MockBridgeTxPool)(nil).AddLocal), arg0) 50 } 51 52 // Get mocks base method 53 func (m *MockBridgeTxPool) Get(arg0 common.Hash) *types.Transaction { 54 m.ctrl.T.Helper() 55 ret := m.ctrl.Call(m, "Get", arg0) 56 ret0, _ := ret[0].(*types.Transaction) 57 return ret0 58 } 59 60 // Get indicates an expected call of Get 61 func (mr *MockBridgeTxPoolMockRecorder) Get(arg0 interface{}) *gomock.Call { 62 mr.mock.ctrl.T.Helper() 63 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockBridgeTxPool)(nil).Get), arg0) 64 } 65 66 // GetMaxTxNonce mocks base method 67 func (m *MockBridgeTxPool) GetMaxTxNonce(arg0 *common.Address) uint64 { 68 m.ctrl.T.Helper() 69 ret := m.ctrl.Call(m, "GetMaxTxNonce", arg0) 70 ret0, _ := ret[0].(uint64) 71 return ret0 72 } 73 74 // GetMaxTxNonce indicates an expected call of GetMaxTxNonce 75 func (mr *MockBridgeTxPoolMockRecorder) GetMaxTxNonce(arg0 interface{}) *gomock.Call { 76 mr.mock.ctrl.T.Helper() 77 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMaxTxNonce", reflect.TypeOf((*MockBridgeTxPool)(nil).GetMaxTxNonce), arg0) 78 } 79 80 // Pending mocks base method 81 func (m *MockBridgeTxPool) Pending() map[common.Address]types.Transactions { 82 m.ctrl.T.Helper() 83 ret := m.ctrl.Call(m, "Pending") 84 ret0, _ := ret[0].(map[common.Address]types.Transactions) 85 return ret0 86 } 87 88 // Pending indicates an expected call of Pending 89 func (mr *MockBridgeTxPoolMockRecorder) Pending() *gomock.Call { 90 mr.mock.ctrl.T.Helper() 91 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Pending", reflect.TypeOf((*MockBridgeTxPool)(nil).Pending)) 92 } 93 94 // PendingTxHashesByAddress mocks base method 95 func (m *MockBridgeTxPool) PendingTxHashesByAddress(arg0 *common.Address, arg1 int) []common.Hash { 96 m.ctrl.T.Helper() 97 ret := m.ctrl.Call(m, "PendingTxHashesByAddress", arg0, arg1) 98 ret0, _ := ret[0].([]common.Hash) 99 return ret0 100 } 101 102 // PendingTxHashesByAddress indicates an expected call of PendingTxHashesByAddress 103 func (mr *MockBridgeTxPoolMockRecorder) PendingTxHashesByAddress(arg0, arg1 interface{}) *gomock.Call { 104 mr.mock.ctrl.T.Helper() 105 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PendingTxHashesByAddress", reflect.TypeOf((*MockBridgeTxPool)(nil).PendingTxHashesByAddress), arg0, arg1) 106 } 107 108 // PendingTxsByAddress mocks base method 109 func (m *MockBridgeTxPool) PendingTxsByAddress(arg0 *common.Address, arg1 int) types.Transactions { 110 m.ctrl.T.Helper() 111 ret := m.ctrl.Call(m, "PendingTxsByAddress", arg0, arg1) 112 ret0, _ := ret[0].(types.Transactions) 113 return ret0 114 } 115 116 // PendingTxsByAddress indicates an expected call of PendingTxsByAddress 117 func (mr *MockBridgeTxPoolMockRecorder) PendingTxsByAddress(arg0, arg1 interface{}) *gomock.Call { 118 mr.mock.ctrl.T.Helper() 119 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PendingTxsByAddress", reflect.TypeOf((*MockBridgeTxPool)(nil).PendingTxsByAddress), arg0, arg1) 120 } 121 122 // RemoveTx mocks base method 123 func (m *MockBridgeTxPool) RemoveTx(arg0 *types.Transaction) error { 124 m.ctrl.T.Helper() 125 ret := m.ctrl.Call(m, "RemoveTx", arg0) 126 ret0, _ := ret[0].(error) 127 return ret0 128 } 129 130 // RemoveTx indicates an expected call of RemoveTx 131 func (mr *MockBridgeTxPoolMockRecorder) RemoveTx(arg0 interface{}) *gomock.Call { 132 mr.mock.ctrl.T.Helper() 133 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveTx", reflect.TypeOf((*MockBridgeTxPool)(nil).RemoveTx), arg0) 134 } 135 136 // Stats mocks base method 137 func (m *MockBridgeTxPool) Stats() int { 138 m.ctrl.T.Helper() 139 ret := m.ctrl.Call(m, "Stats") 140 ret0, _ := ret[0].(int) 141 return ret0 142 } 143 144 // Stats indicates an expected call of Stats 145 func (mr *MockBridgeTxPoolMockRecorder) Stats() *gomock.Call { 146 mr.mock.ctrl.T.Helper() 147 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stats", reflect.TypeOf((*MockBridgeTxPool)(nil).Stats)) 148 } 149 150 // Stop mocks base method 151 func (m *MockBridgeTxPool) Stop() { 152 m.ctrl.T.Helper() 153 m.ctrl.Call(m, "Stop") 154 } 155 156 // Stop indicates an expected call of Stop 157 func (mr *MockBridgeTxPoolMockRecorder) Stop() *gomock.Call { 158 mr.mock.ctrl.T.Helper() 159 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockBridgeTxPool)(nil).Stop)) 160 }