Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockBlockChain
- func (m *MockBlockChain) Config() *params.ChainConfig
- func (m *MockBlockChain) CurrentBlock() *types.Block
- func (m *MockBlockChain) CurrentFastBlock() *types.Block
- func (m *MockBlockChain) CurrentHeader() *types.Header
- func (m *MockBlockChain) EXPECT() *MockBlockChainMockRecorder
- func (m *MockBlockChain) FastSyncCommitHead(arg0 common.Hash) error
- func (m *MockBlockChain) Genesis() *types.Block
- func (m *MockBlockChain) GetBlock(arg0 common.Hash, arg1 uint64) *types.Block
- func (m *MockBlockChain) GetBlockByHash(arg0 common.Hash) *types.Block
- func (m *MockBlockChain) GetBlockHashesFromHash(arg0 common.Hash, arg1 uint64) []common.Hash
- func (m *MockBlockChain) GetBodyRLP(arg0 common.Hash) rlp.RawValue
- func (m *MockBlockChain) GetHeader(arg0 common.Hash, arg1 uint64) *types.Header
- func (m *MockBlockChain) GetHeaderByHash(arg0 common.Hash) *types.Header
- func (m *MockBlockChain) GetHeaderByNumber(arg0 uint64) *types.Header
- func (m *MockBlockChain) GetReceiptsByBlockHash(arg0 common.Hash) types.Receipts
- func (m *MockBlockChain) GetTd(arg0 common.Hash, arg1 uint64) *big.Int
- func (m *MockBlockChain) GetTdByHash(arg0 common.Hash) *big.Int
- func (m *MockBlockChain) HasBlock(arg0 common.Hash, arg1 uint64) bool
- func (m *MockBlockChain) HasHeader(arg0 common.Hash, arg1 uint64) bool
- func (m *MockBlockChain) InsertChain(arg0 types.Blocks) (int, error)
- func (m *MockBlockChain) InsertHeaderChain(arg0 []*types.Header, arg1 int) (int, error)
- func (m *MockBlockChain) InsertReceiptChain(arg0 types.Blocks, arg1 []types.Receipts) (int, error)
- func (m *MockBlockChain) Rollback(arg0 []common.Hash)
- func (m *MockBlockChain) State() (*state.StateDB, error)
- func (m *MockBlockChain) TrieNode(arg0 common.Hash) ([]byte, error)
- type MockBlockChainMockRecorder
- func (mr *MockBlockChainMockRecorder) Config() *gomock.Call
- func (mr *MockBlockChainMockRecorder) CurrentBlock() *gomock.Call
- func (mr *MockBlockChainMockRecorder) CurrentFastBlock() *gomock.Call
- func (mr *MockBlockChainMockRecorder) CurrentHeader() *gomock.Call
- func (mr *MockBlockChainMockRecorder) FastSyncCommitHead(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) Genesis() *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetBlock(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetBlockByHash(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetBlockHashesFromHash(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetBodyRLP(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetHeader(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetHeaderByHash(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetHeaderByNumber(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetReceiptsByBlockHash(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetTd(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetTdByHash(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) HasBlock(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) HasHeader(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) InsertChain(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) InsertHeaderChain(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) InsertReceiptChain(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) Rollback(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) State() *gomock.Call
- func (mr *MockBlockChainMockRecorder) TrieNode(arg0 interface{}) *gomock.Call
- type MockProtocolManagerFetcher
- func (m *MockProtocolManagerFetcher) EXPECT() *MockProtocolManagerFetcherMockRecorder
- func (m *MockProtocolManagerFetcher) Enqueue(arg0 string, arg1 *types.Block) error
- func (m *MockProtocolManagerFetcher) FilterBodies(arg0 string, arg1 [][]*types.Transaction, arg2 time.Time) [][]*types.Transaction
- func (m *MockProtocolManagerFetcher) FilterHeaders(arg0 string, arg1 []*types.Header, arg2 time.Time) []*types.Header
- func (m *MockProtocolManagerFetcher) Notify(arg0 string, arg1 common.Hash, arg2 uint64, arg3 time.Time, ...) error
- func (m *MockProtocolManagerFetcher) Start()
- func (m *MockProtocolManagerFetcher) Stop()
- type MockProtocolManagerFetcherMockRecorder
- func (mr *MockProtocolManagerFetcherMockRecorder) Enqueue(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockProtocolManagerFetcherMockRecorder) FilterBodies(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockProtocolManagerFetcherMockRecorder) FilterHeaders(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockProtocolManagerFetcherMockRecorder) Notify(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
- func (mr *MockProtocolManagerFetcherMockRecorder) Start() *gomock.Call
- func (mr *MockProtocolManagerFetcherMockRecorder) Stop() *gomock.Call
- type MockTxPool
- func (m *MockTxPool) CachedPendingTxsByCount(arg0 int) types.Transactions
- func (m *MockTxPool) EXPECT() *MockTxPoolMockRecorder
- func (m *MockTxPool) HandleTxMsg(arg0 types.Transactions)
- func (m *MockTxPool) Pending() (map[common.Address]types.Transactions, error)
- func (m *MockTxPool) SubscribeNewTxsEvent(arg0 chan<- blockchain.NewTxsEvent) event.Subscription
- type MockTxPoolMockRecorder
- func (mr *MockTxPoolMockRecorder) CachedPendingTxsByCount(arg0 interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) HandleTxMsg(arg0 interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) Pending() *gomock.Call
- func (mr *MockTxPoolMockRecorder) SubscribeNewTxsEvent(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBlockChain ¶
type MockBlockChain struct {
// contains filtered or unexported fields
}
MockBlockChain is a mock of BlockChain interface
func NewMockBlockChain ¶
func NewMockBlockChain(ctrl *gomock.Controller) *MockBlockChain
NewMockBlockChain creates a new mock instance
func (*MockBlockChain) Config ¶
func (m *MockBlockChain) Config() *params.ChainConfig
Config mocks base method
func (*MockBlockChain) CurrentBlock ¶
func (m *MockBlockChain) CurrentBlock() *types.Block
CurrentBlock mocks base method
func (*MockBlockChain) CurrentFastBlock ¶
func (m *MockBlockChain) CurrentFastBlock() *types.Block
CurrentFastBlock mocks base method
func (*MockBlockChain) CurrentHeader ¶
func (m *MockBlockChain) CurrentHeader() *types.Header
CurrentHeader mocks base method
func (*MockBlockChain) EXPECT ¶
func (m *MockBlockChain) EXPECT() *MockBlockChainMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockBlockChain) FastSyncCommitHead ¶
func (m *MockBlockChain) FastSyncCommitHead(arg0 common.Hash) error
FastSyncCommitHead mocks base method
func (*MockBlockChain) Genesis ¶
func (m *MockBlockChain) Genesis() *types.Block
Genesis mocks base method
func (*MockBlockChain) GetBlockByHash ¶
func (m *MockBlockChain) GetBlockByHash(arg0 common.Hash) *types.Block
GetBlockByHash mocks base method
func (*MockBlockChain) GetBlockHashesFromHash ¶
GetBlockHashesFromHash mocks base method
func (*MockBlockChain) GetBodyRLP ¶
func (m *MockBlockChain) GetBodyRLP(arg0 common.Hash) rlp.RawValue
GetBodyRLP mocks base method
func (*MockBlockChain) GetHeaderByHash ¶
func (m *MockBlockChain) GetHeaderByHash(arg0 common.Hash) *types.Header
GetHeaderByHash mocks base method
func (*MockBlockChain) GetHeaderByNumber ¶
func (m *MockBlockChain) GetHeaderByNumber(arg0 uint64) *types.Header
GetHeaderByNumber mocks base method
func (*MockBlockChain) GetReceiptsByBlockHash ¶
func (m *MockBlockChain) GetReceiptsByBlockHash(arg0 common.Hash) types.Receipts
GetReceiptsByBlockHash mocks base method
func (*MockBlockChain) GetTdByHash ¶
func (m *MockBlockChain) GetTdByHash(arg0 common.Hash) *big.Int
GetTdByHash mocks base method
func (*MockBlockChain) HasBlock ¶
func (m *MockBlockChain) HasBlock(arg0 common.Hash, arg1 uint64) bool
HasBlock mocks base method
func (*MockBlockChain) HasHeader ¶
func (m *MockBlockChain) HasHeader(arg0 common.Hash, arg1 uint64) bool
HasHeader mocks base method
func (*MockBlockChain) InsertChain ¶
func (m *MockBlockChain) InsertChain(arg0 types.Blocks) (int, error)
InsertChain mocks base method
func (*MockBlockChain) InsertHeaderChain ¶
InsertHeaderChain mocks base method
func (*MockBlockChain) InsertReceiptChain ¶
InsertReceiptChain mocks base method
func (*MockBlockChain) Rollback ¶
func (m *MockBlockChain) Rollback(arg0 []common.Hash)
Rollback mocks base method
type MockBlockChainMockRecorder ¶
type MockBlockChainMockRecorder struct {
// contains filtered or unexported fields
}
MockBlockChainMockRecorder is the mock recorder for MockBlockChain
func (*MockBlockChainMockRecorder) Config ¶
func (mr *MockBlockChainMockRecorder) Config() *gomock.Call
Config indicates an expected call of Config
func (*MockBlockChainMockRecorder) CurrentBlock ¶
func (mr *MockBlockChainMockRecorder) CurrentBlock() *gomock.Call
CurrentBlock indicates an expected call of CurrentBlock
func (*MockBlockChainMockRecorder) CurrentFastBlock ¶
func (mr *MockBlockChainMockRecorder) CurrentFastBlock() *gomock.Call
CurrentFastBlock indicates an expected call of CurrentFastBlock
func (*MockBlockChainMockRecorder) CurrentHeader ¶
func (mr *MockBlockChainMockRecorder) CurrentHeader() *gomock.Call
CurrentHeader indicates an expected call of CurrentHeader
func (*MockBlockChainMockRecorder) FastSyncCommitHead ¶
func (mr *MockBlockChainMockRecorder) FastSyncCommitHead(arg0 interface{}) *gomock.Call
FastSyncCommitHead indicates an expected call of FastSyncCommitHead
func (*MockBlockChainMockRecorder) Genesis ¶
func (mr *MockBlockChainMockRecorder) Genesis() *gomock.Call
Genesis indicates an expected call of Genesis
func (*MockBlockChainMockRecorder) GetBlock ¶
func (mr *MockBlockChainMockRecorder) GetBlock(arg0, arg1 interface{}) *gomock.Call
GetBlock indicates an expected call of GetBlock
func (*MockBlockChainMockRecorder) GetBlockByHash ¶
func (mr *MockBlockChainMockRecorder) GetBlockByHash(arg0 interface{}) *gomock.Call
GetBlockByHash indicates an expected call of GetBlockByHash
func (*MockBlockChainMockRecorder) GetBlockHashesFromHash ¶
func (mr *MockBlockChainMockRecorder) GetBlockHashesFromHash(arg0, arg1 interface{}) *gomock.Call
GetBlockHashesFromHash indicates an expected call of GetBlockHashesFromHash
func (*MockBlockChainMockRecorder) GetBodyRLP ¶
func (mr *MockBlockChainMockRecorder) GetBodyRLP(arg0 interface{}) *gomock.Call
GetBodyRLP indicates an expected call of GetBodyRLP
func (*MockBlockChainMockRecorder) GetHeader ¶
func (mr *MockBlockChainMockRecorder) GetHeader(arg0, arg1 interface{}) *gomock.Call
GetHeader indicates an expected call of GetHeader
func (*MockBlockChainMockRecorder) GetHeaderByHash ¶
func (mr *MockBlockChainMockRecorder) GetHeaderByHash(arg0 interface{}) *gomock.Call
GetHeaderByHash indicates an expected call of GetHeaderByHash
func (*MockBlockChainMockRecorder) GetHeaderByNumber ¶
func (mr *MockBlockChainMockRecorder) GetHeaderByNumber(arg0 interface{}) *gomock.Call
GetHeaderByNumber indicates an expected call of GetHeaderByNumber
func (*MockBlockChainMockRecorder) GetReceiptsByBlockHash ¶
func (mr *MockBlockChainMockRecorder) GetReceiptsByBlockHash(arg0 interface{}) *gomock.Call
GetReceiptsByBlockHash indicates an expected call of GetReceiptsByBlockHash
func (*MockBlockChainMockRecorder) GetTd ¶
func (mr *MockBlockChainMockRecorder) GetTd(arg0, arg1 interface{}) *gomock.Call
GetTd indicates an expected call of GetTd
func (*MockBlockChainMockRecorder) GetTdByHash ¶
func (mr *MockBlockChainMockRecorder) GetTdByHash(arg0 interface{}) *gomock.Call
GetTdByHash indicates an expected call of GetTdByHash
func (*MockBlockChainMockRecorder) HasBlock ¶
func (mr *MockBlockChainMockRecorder) HasBlock(arg0, arg1 interface{}) *gomock.Call
HasBlock indicates an expected call of HasBlock
func (*MockBlockChainMockRecorder) HasHeader ¶
func (mr *MockBlockChainMockRecorder) HasHeader(arg0, arg1 interface{}) *gomock.Call
HasHeader indicates an expected call of HasHeader
func (*MockBlockChainMockRecorder) InsertChain ¶
func (mr *MockBlockChainMockRecorder) InsertChain(arg0 interface{}) *gomock.Call
InsertChain indicates an expected call of InsertChain
func (*MockBlockChainMockRecorder) InsertHeaderChain ¶
func (mr *MockBlockChainMockRecorder) InsertHeaderChain(arg0, arg1 interface{}) *gomock.Call
InsertHeaderChain indicates an expected call of InsertHeaderChain
func (*MockBlockChainMockRecorder) InsertReceiptChain ¶
func (mr *MockBlockChainMockRecorder) InsertReceiptChain(arg0, arg1 interface{}) *gomock.Call
InsertReceiptChain indicates an expected call of InsertReceiptChain
func (*MockBlockChainMockRecorder) Rollback ¶
func (mr *MockBlockChainMockRecorder) Rollback(arg0 interface{}) *gomock.Call
Rollback indicates an expected call of Rollback
func (*MockBlockChainMockRecorder) State ¶
func (mr *MockBlockChainMockRecorder) State() *gomock.Call
State indicates an expected call of State
func (*MockBlockChainMockRecorder) TrieNode ¶
func (mr *MockBlockChainMockRecorder) TrieNode(arg0 interface{}) *gomock.Call
TrieNode indicates an expected call of TrieNode
type MockProtocolManagerFetcher ¶
type MockProtocolManagerFetcher struct {
// contains filtered or unexported fields
}
MockProtocolManagerFetcher is a mock of ProtocolManagerFetcher interface
func NewMockProtocolManagerFetcher ¶
func NewMockProtocolManagerFetcher(ctrl *gomock.Controller) *MockProtocolManagerFetcher
NewMockProtocolManagerFetcher creates a new mock instance
func (*MockProtocolManagerFetcher) EXPECT ¶
func (m *MockProtocolManagerFetcher) EXPECT() *MockProtocolManagerFetcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockProtocolManagerFetcher) Enqueue ¶
func (m *MockProtocolManagerFetcher) Enqueue(arg0 string, arg1 *types.Block) error
Enqueue mocks base method
func (*MockProtocolManagerFetcher) FilterBodies ¶
func (m *MockProtocolManagerFetcher) FilterBodies(arg0 string, arg1 [][]*types.Transaction, arg2 time.Time) [][]*types.Transaction
FilterBodies mocks base method
func (*MockProtocolManagerFetcher) FilterHeaders ¶
func (m *MockProtocolManagerFetcher) FilterHeaders(arg0 string, arg1 []*types.Header, arg2 time.Time) []*types.Header
FilterHeaders mocks base method
func (*MockProtocolManagerFetcher) Notify ¶
func (m *MockProtocolManagerFetcher) Notify(arg0 string, arg1 common.Hash, arg2 uint64, arg3 time.Time, arg4 fetcher.HeaderRequesterFn, arg5 fetcher.BodyRequesterFn) error
Notify mocks base method
func (*MockProtocolManagerFetcher) Start ¶
func (m *MockProtocolManagerFetcher) Start()
Start mocks base method
func (*MockProtocolManagerFetcher) Stop ¶
func (m *MockProtocolManagerFetcher) Stop()
Stop mocks base method
type MockProtocolManagerFetcherMockRecorder ¶
type MockProtocolManagerFetcherMockRecorder struct {
// contains filtered or unexported fields
}
MockProtocolManagerFetcherMockRecorder is the mock recorder for MockProtocolManagerFetcher
func (*MockProtocolManagerFetcherMockRecorder) Enqueue ¶
func (mr *MockProtocolManagerFetcherMockRecorder) Enqueue(arg0, arg1 interface{}) *gomock.Call
Enqueue indicates an expected call of Enqueue
func (*MockProtocolManagerFetcherMockRecorder) FilterBodies ¶
func (mr *MockProtocolManagerFetcherMockRecorder) FilterBodies(arg0, arg1, arg2 interface{}) *gomock.Call
FilterBodies indicates an expected call of FilterBodies
func (*MockProtocolManagerFetcherMockRecorder) FilterHeaders ¶
func (mr *MockProtocolManagerFetcherMockRecorder) FilterHeaders(arg0, arg1, arg2 interface{}) *gomock.Call
FilterHeaders indicates an expected call of FilterHeaders
func (*MockProtocolManagerFetcherMockRecorder) Notify ¶
func (mr *MockProtocolManagerFetcherMockRecorder) Notify(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
Notify indicates an expected call of Notify
func (*MockProtocolManagerFetcherMockRecorder) Start ¶
func (mr *MockProtocolManagerFetcherMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start
func (*MockProtocolManagerFetcherMockRecorder) Stop ¶
func (mr *MockProtocolManagerFetcherMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop
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) CachedPendingTxsByCount ¶
func (m *MockTxPool) CachedPendingTxsByCount(arg0 int) types.Transactions
CachedPendingTxsByCount 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) HandleTxMsg ¶
func (m *MockTxPool) HandleTxMsg(arg0 types.Transactions)
HandleTxMsg mocks base method
func (*MockTxPool) Pending ¶
func (m *MockTxPool) Pending() (map[common.Address]types.Transactions, error)
Pending mocks base method
func (*MockTxPool) SubscribeNewTxsEvent ¶
func (m *MockTxPool) SubscribeNewTxsEvent(arg0 chan<- blockchain.NewTxsEvent) event.Subscription
SubscribeNewTxsEvent mocks base method
type MockTxPoolMockRecorder ¶
type MockTxPoolMockRecorder struct {
// contains filtered or unexported fields
}
MockTxPoolMockRecorder is the mock recorder for MockTxPool
func (*MockTxPoolMockRecorder) CachedPendingTxsByCount ¶
func (mr *MockTxPoolMockRecorder) CachedPendingTxsByCount(arg0 interface{}) *gomock.Call
CachedPendingTxsByCount indicates an expected call of CachedPendingTxsByCount
func (*MockTxPoolMockRecorder) HandleTxMsg ¶
func (mr *MockTxPoolMockRecorder) HandleTxMsg(arg0 interface{}) *gomock.Call
HandleTxMsg indicates an expected call of HandleTxMsg
func (*MockTxPoolMockRecorder) Pending ¶
func (mr *MockTxPoolMockRecorder) Pending() *gomock.Call
Pending indicates an expected call of Pending
func (*MockTxPoolMockRecorder) SubscribeNewTxsEvent ¶
func (mr *MockTxPoolMockRecorder) SubscribeNewTxsEvent(arg0 interface{}) *gomock.Call
SubscribeNewTxsEvent indicates an expected call of SubscribeNewTxsEvent