Documentation ¶
Overview ¶
Package txpool_mock is a generated GoMock package.
Index ¶
- type MockTxPool
- func (m *MockTxPool) AddLinkedNode(linkedNode *blockcache.BlockCacheNode) error
- func (m *MockTxPool) AddTx(tx *tx.Tx, from string) error
- func (m *MockTxPool) Close()
- func (m *MockTxPool) DelTx(hash []byte) error
- func (m *MockTxPool) EXPECT() *MockTxPoolMockRecorder
- func (m *MockTxPool) ExistTxs(hash []byte, chainBlock *block.Block) bool
- func (m *MockTxPool) GetFromChain(hash []byte) (*tx.Tx, *tx.TxReceipt, error)
- func (m *MockTxPool) GetFromPending(hash []byte) (*tx.Tx, error)
- func (m *MockTxPool) PendingTx() (*txpool.SortedTxMap, *blockcache.BlockCacheNode)
- type MockTxPoolMockRecorder
- func (mr *MockTxPoolMockRecorder) AddLinkedNode(linkedNode interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) AddTx(tx, from interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) Close() *gomock.Call
- func (mr *MockTxPoolMockRecorder) DelTx(hash interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) ExistTxs(hash, chainBlock interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) GetFromChain(hash interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) GetFromPending(hash interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) PendingTx() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockTxPool ¶
type MockTxPool struct {
// contains filtered or unexported fields
}
MockTxPool is a mock of TxPool interface.
func NewMockTxPool ¶
func NewMockTxPool(ctrl *gomock.Controller) *MockTxPool
NewMockTxPool creates a new mock instance.
func (*MockTxPool) AddLinkedNode ¶
func (m *MockTxPool) AddLinkedNode(linkedNode *blockcache.BlockCacheNode) error
AddLinkedNode mocks base method.
func (*MockTxPool) AddTx ¶
func (m *MockTxPool) AddTx(tx *tx.Tx, from string) error
AddTx mocks base method.
func (*MockTxPool) EXPECT ¶
func (m *MockTxPool) EXPECT() *MockTxPoolMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTxPool) ExistTxs ¶
func (m *MockTxPool) ExistTxs(hash []byte, chainBlock *block.Block) bool
ExistTxs mocks base method.
func (*MockTxPool) GetFromChain ¶
GetFromChain mocks base method.
func (*MockTxPool) GetFromPending ¶
func (m *MockTxPool) GetFromPending(hash []byte) (*tx.Tx, error)
GetFromPending mocks base method.
func (*MockTxPool) PendingTx ¶
func (m *MockTxPool) PendingTx() (*txpool.SortedTxMap, *blockcache.BlockCacheNode)
PendingTx mocks base method.
type MockTxPoolMockRecorder ¶
type MockTxPoolMockRecorder struct {
// contains filtered or unexported fields
}
MockTxPoolMockRecorder is the mock recorder for MockTxPool.
func (*MockTxPoolMockRecorder) AddLinkedNode ¶
func (mr *MockTxPoolMockRecorder) AddLinkedNode(linkedNode interface{}) *gomock.Call
AddLinkedNode indicates an expected call of AddLinkedNode.
func (*MockTxPoolMockRecorder) AddTx ¶
func (mr *MockTxPoolMockRecorder) AddTx(tx, from interface{}) *gomock.Call
AddTx indicates an expected call of AddTx.
func (*MockTxPoolMockRecorder) Close ¶ added in v3.9.2
func (mr *MockTxPoolMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockTxPoolMockRecorder) DelTx ¶
func (mr *MockTxPoolMockRecorder) DelTx(hash interface{}) *gomock.Call
DelTx indicates an expected call of DelTx.
func (*MockTxPoolMockRecorder) ExistTxs ¶
func (mr *MockTxPoolMockRecorder) ExistTxs(hash, chainBlock interface{}) *gomock.Call
ExistTxs indicates an expected call of ExistTxs.
func (*MockTxPoolMockRecorder) GetFromChain ¶
func (mr *MockTxPoolMockRecorder) GetFromChain(hash interface{}) *gomock.Call
GetFromChain indicates an expected call of GetFromChain.
func (*MockTxPoolMockRecorder) GetFromPending ¶
func (mr *MockTxPoolMockRecorder) GetFromPending(hash interface{}) *gomock.Call
GetFromPending indicates an expected call of GetFromPending.
func (*MockTxPoolMockRecorder) PendingTx ¶
func (mr *MockTxPoolMockRecorder) PendingTx() *gomock.Call
PendingTx indicates an expected call of PendingTx.