Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockLesServer
- type MockLesServerMockRecorder
- type MockMiner
- func (m *MockMiner) EXPECT() *MockMinerMockRecorder
- func (m *MockMiner) HashRate() int64
- func (m *MockMiner) Mining() bool
- func (m *MockMiner) Pending() (*types.Block, *state.StateDB)
- func (m *MockMiner) PendingBlock() *types.Block
- func (m *MockMiner) Register(arg0 work.Agent)
- func (m *MockMiner) SetExtra(arg0 []byte) error
- func (m *MockMiner) Start()
- func (m *MockMiner) Stop()
- type MockMinerMockRecorder
- func (mr *MockMinerMockRecorder) HashRate() *gomock.Call
- func (mr *MockMinerMockRecorder) Mining() *gomock.Call
- func (mr *MockMinerMockRecorder) Pending() *gomock.Call
- func (mr *MockMinerMockRecorder) PendingBlock() *gomock.Call
- func (mr *MockMinerMockRecorder) Register(arg0 interface{}) *gomock.Call
- func (mr *MockMinerMockRecorder) SetExtra(arg0 interface{}) *gomock.Call
- func (mr *MockMinerMockRecorder) Start() *gomock.Call
- func (mr *MockMinerMockRecorder) Stop() *gomock.Call
- type MockProtocolManagerDownloader
- func (m *MockProtocolManagerDownloader) Cancel()
- func (m *MockProtocolManagerDownloader) DeliverBodies(arg0 string, arg1 [][]*types.Transaction) error
- func (m *MockProtocolManagerDownloader) DeliverHeaders(arg0 string, arg1 []*types.Header) error
- func (m *MockProtocolManagerDownloader) DeliverNodeData(arg0 string, arg1 [][]byte) error
- func (m *MockProtocolManagerDownloader) DeliverReceipts(arg0 string, arg1 [][]*types.Receipt) error
- func (m *MockProtocolManagerDownloader) EXPECT() *MockProtocolManagerDownloaderMockRecorder
- func (m *MockProtocolManagerDownloader) Progress() klaytn.SyncProgress
- func (m *MockProtocolManagerDownloader) RegisterPeer(arg0 string, arg1 int, arg2 downloader.Peer) error
- func (m *MockProtocolManagerDownloader) Synchronise(arg0 string, arg1 common.Hash, arg2 *big.Int, arg3 downloader.SyncMode) error
- func (m *MockProtocolManagerDownloader) Terminate()
- func (m *MockProtocolManagerDownloader) UnregisterPeer(arg0 string) error
- type MockProtocolManagerDownloaderMockRecorder
- func (mr *MockProtocolManagerDownloaderMockRecorder) Cancel() *gomock.Call
- func (mr *MockProtocolManagerDownloaderMockRecorder) DeliverBodies(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockProtocolManagerDownloaderMockRecorder) DeliverHeaders(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockProtocolManagerDownloaderMockRecorder) DeliverNodeData(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockProtocolManagerDownloaderMockRecorder) DeliverReceipts(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockProtocolManagerDownloaderMockRecorder) Progress() *gomock.Call
- func (mr *MockProtocolManagerDownloaderMockRecorder) RegisterPeer(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockProtocolManagerDownloaderMockRecorder) Synchronise(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockProtocolManagerDownloaderMockRecorder) Terminate() *gomock.Call
- func (mr *MockProtocolManagerDownloaderMockRecorder) UnregisterPeer(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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockLesServer ¶ added in v1.3.0
type MockLesServer struct {
// contains filtered or unexported fields
}
MockLesServer is a mock of LesServer interface
func NewMockLesServer ¶ added in v1.3.0
func NewMockLesServer(ctrl *gomock.Controller) *MockLesServer
NewMockLesServer creates a new mock instance
func (*MockLesServer) EXPECT ¶ added in v1.3.0
func (m *MockLesServer) EXPECT() *MockLesServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockLesServer) Protocols ¶ added in v1.3.0
func (m *MockLesServer) Protocols() []p2p.Protocol
Protocols mocks base method
func (*MockLesServer) SetBloomBitsIndexer ¶ added in v1.3.0
func (m *MockLesServer) SetBloomBitsIndexer(arg0 *blockchain.ChainIndexer)
SetBloomBitsIndexer mocks base method
func (*MockLesServer) Start ¶ added in v1.3.0
func (m *MockLesServer) Start(arg0 p2p.Server)
Start mocks base method
type MockLesServerMockRecorder ¶ added in v1.3.0
type MockLesServerMockRecorder struct {
// contains filtered or unexported fields
}
MockLesServerMockRecorder is the mock recorder for MockLesServer
func (*MockLesServerMockRecorder) Protocols ¶ added in v1.3.0
func (mr *MockLesServerMockRecorder) Protocols() *gomock.Call
Protocols indicates an expected call of Protocols
func (*MockLesServerMockRecorder) SetBloomBitsIndexer ¶ added in v1.3.0
func (mr *MockLesServerMockRecorder) SetBloomBitsIndexer(arg0 interface{}) *gomock.Call
SetBloomBitsIndexer indicates an expected call of SetBloomBitsIndexer
func (*MockLesServerMockRecorder) Start ¶ added in v1.3.0
func (mr *MockLesServerMockRecorder) Start(arg0 interface{}) *gomock.Call
Start indicates an expected call of Start
func (*MockLesServerMockRecorder) Stop ¶ added in v1.3.0
func (mr *MockLesServerMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop
type MockMiner ¶ added in v1.3.0
type MockMiner struct {
// contains filtered or unexported fields
}
MockMiner is a mock of Miner interface
func NewMockMiner ¶ added in v1.3.0
func NewMockMiner(ctrl *gomock.Controller) *MockMiner
NewMockMiner creates a new mock instance
func (*MockMiner) EXPECT ¶ added in v1.3.0
func (m *MockMiner) EXPECT() *MockMinerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockMiner) PendingBlock ¶ added in v1.3.0
PendingBlock mocks base method
type MockMinerMockRecorder ¶ added in v1.3.0
type MockMinerMockRecorder struct {
// contains filtered or unexported fields
}
MockMinerMockRecorder is the mock recorder for MockMiner
func (*MockMinerMockRecorder) HashRate ¶ added in v1.3.0
func (mr *MockMinerMockRecorder) HashRate() *gomock.Call
HashRate indicates an expected call of HashRate
func (*MockMinerMockRecorder) Mining ¶ added in v1.3.0
func (mr *MockMinerMockRecorder) Mining() *gomock.Call
Mining indicates an expected call of Mining
func (*MockMinerMockRecorder) Pending ¶ added in v1.3.0
func (mr *MockMinerMockRecorder) Pending() *gomock.Call
Pending indicates an expected call of Pending
func (*MockMinerMockRecorder) PendingBlock ¶ added in v1.3.0
func (mr *MockMinerMockRecorder) PendingBlock() *gomock.Call
PendingBlock indicates an expected call of PendingBlock
func (*MockMinerMockRecorder) Register ¶ added in v1.3.0
func (mr *MockMinerMockRecorder) Register(arg0 interface{}) *gomock.Call
Register indicates an expected call of Register
func (*MockMinerMockRecorder) SetExtra ¶ added in v1.3.0
func (mr *MockMinerMockRecorder) SetExtra(arg0 interface{}) *gomock.Call
SetExtra indicates an expected call of SetExtra
func (*MockMinerMockRecorder) Start ¶ added in v1.3.0
func (mr *MockMinerMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start
func (*MockMinerMockRecorder) Stop ¶ added in v1.3.0
func (mr *MockMinerMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop
type MockProtocolManagerDownloader ¶ added in v1.3.0
type MockProtocolManagerDownloader struct {
// contains filtered or unexported fields
}
MockProtocolManagerDownloader is a mock of ProtocolManagerDownloader interface.
func NewMockProtocolManagerDownloader ¶ added in v1.3.0
func NewMockProtocolManagerDownloader(ctrl *gomock.Controller) *MockProtocolManagerDownloader
NewMockProtocolManagerDownloader creates a new mock instance.
func (*MockProtocolManagerDownloader) Cancel ¶ added in v1.8.0
func (m *MockProtocolManagerDownloader) Cancel()
Cancel mocks base method.
func (*MockProtocolManagerDownloader) DeliverBodies ¶ added in v1.3.0
func (m *MockProtocolManagerDownloader) DeliverBodies(arg0 string, arg1 [][]*types.Transaction) error
DeliverBodies mocks base method.
func (*MockProtocolManagerDownloader) DeliverHeaders ¶ added in v1.3.0
func (m *MockProtocolManagerDownloader) DeliverHeaders(arg0 string, arg1 []*types.Header) error
DeliverHeaders mocks base method.
func (*MockProtocolManagerDownloader) DeliverNodeData ¶ added in v1.3.0
func (m *MockProtocolManagerDownloader) DeliverNodeData(arg0 string, arg1 [][]byte) error
DeliverNodeData mocks base method.
func (*MockProtocolManagerDownloader) DeliverReceipts ¶ added in v1.3.0
func (m *MockProtocolManagerDownloader) DeliverReceipts(arg0 string, arg1 [][]*types.Receipt) error
DeliverReceipts mocks base method.
func (*MockProtocolManagerDownloader) EXPECT ¶ added in v1.3.0
func (m *MockProtocolManagerDownloader) EXPECT() *MockProtocolManagerDownloaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProtocolManagerDownloader) Progress ¶ added in v1.3.0
func (m *MockProtocolManagerDownloader) Progress() klaytn.SyncProgress
Progress mocks base method.
func (*MockProtocolManagerDownloader) RegisterPeer ¶ added in v1.3.0
func (m *MockProtocolManagerDownloader) RegisterPeer(arg0 string, arg1 int, arg2 downloader.Peer) error
RegisterPeer mocks base method.
func (*MockProtocolManagerDownloader) Synchronise ¶ added in v1.3.0
func (m *MockProtocolManagerDownloader) Synchronise(arg0 string, arg1 common.Hash, arg2 *big.Int, arg3 downloader.SyncMode) error
Synchronise mocks base method.
func (*MockProtocolManagerDownloader) Terminate ¶ added in v1.3.0
func (m *MockProtocolManagerDownloader) Terminate()
Terminate mocks base method.
func (*MockProtocolManagerDownloader) UnregisterPeer ¶ added in v1.3.0
func (m *MockProtocolManagerDownloader) UnregisterPeer(arg0 string) error
UnregisterPeer mocks base method.
type MockProtocolManagerDownloaderMockRecorder ¶ added in v1.3.0
type MockProtocolManagerDownloaderMockRecorder struct {
// contains filtered or unexported fields
}
MockProtocolManagerDownloaderMockRecorder is the mock recorder for MockProtocolManagerDownloader.
func (*MockProtocolManagerDownloaderMockRecorder) Cancel ¶ added in v1.8.0
func (mr *MockProtocolManagerDownloaderMockRecorder) Cancel() *gomock.Call
Cancel indicates an expected call of Cancel.
func (*MockProtocolManagerDownloaderMockRecorder) DeliverBodies ¶ added in v1.3.0
func (mr *MockProtocolManagerDownloaderMockRecorder) DeliverBodies(arg0, arg1 interface{}) *gomock.Call
DeliverBodies indicates an expected call of DeliverBodies.
func (*MockProtocolManagerDownloaderMockRecorder) DeliverHeaders ¶ added in v1.3.0
func (mr *MockProtocolManagerDownloaderMockRecorder) DeliverHeaders(arg0, arg1 interface{}) *gomock.Call
DeliverHeaders indicates an expected call of DeliverHeaders.
func (*MockProtocolManagerDownloaderMockRecorder) DeliverNodeData ¶ added in v1.3.0
func (mr *MockProtocolManagerDownloaderMockRecorder) DeliverNodeData(arg0, arg1 interface{}) *gomock.Call
DeliverNodeData indicates an expected call of DeliverNodeData.
func (*MockProtocolManagerDownloaderMockRecorder) DeliverReceipts ¶ added in v1.3.0
func (mr *MockProtocolManagerDownloaderMockRecorder) DeliverReceipts(arg0, arg1 interface{}) *gomock.Call
DeliverReceipts indicates an expected call of DeliverReceipts.
func (*MockProtocolManagerDownloaderMockRecorder) Progress ¶ added in v1.3.0
func (mr *MockProtocolManagerDownloaderMockRecorder) Progress() *gomock.Call
Progress indicates an expected call of Progress.
func (*MockProtocolManagerDownloaderMockRecorder) RegisterPeer ¶ added in v1.3.0
func (mr *MockProtocolManagerDownloaderMockRecorder) RegisterPeer(arg0, arg1, arg2 interface{}) *gomock.Call
RegisterPeer indicates an expected call of RegisterPeer.
func (*MockProtocolManagerDownloaderMockRecorder) Synchronise ¶ added in v1.3.0
func (mr *MockProtocolManagerDownloaderMockRecorder) Synchronise(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Synchronise indicates an expected call of Synchronise.
func (*MockProtocolManagerDownloaderMockRecorder) Terminate ¶ added in v1.3.0
func (mr *MockProtocolManagerDownloaderMockRecorder) Terminate() *gomock.Call
Terminate indicates an expected call of Terminate.
func (*MockProtocolManagerDownloaderMockRecorder) UnregisterPeer ¶ added in v1.3.0
func (mr *MockProtocolManagerDownloaderMockRecorder) UnregisterPeer(arg0 interface{}) *gomock.Call
UnregisterPeer indicates an expected call of UnregisterPeer.
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