Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockFetcher
- func (m *MockFetcher) EXPECT() *MockFetcherMockRecorder
- func (m *MockFetcher) GetHash(hash types.Hash32, h fetch.Hint, validateHash bool) chan fetch.HashDataPromiseResult
- func (m *MockFetcher) GetHashes(hash []types.Hash32, hint fetch.Hint, validateHash bool) map[types.Hash32]chan fetch.HashDataPromiseResult
- func (m *MockFetcher) Start()
- func (m *MockFetcher) Stop()
- type MockFetcherMockRecorder
- type MocknetworkInterface
- func (m *MocknetworkInterface) Close() error
- func (m *MocknetworkInterface) EXPECT() *MocknetworkInterfaceMockRecorder
- func (m *MocknetworkInterface) GetPeers() []p2p.Peer
- func (m *MocknetworkInterface) PeerCount() uint64
- func (m *MocknetworkInterface) Request(arg0 context.Context, arg1 p2p.Peer, arg2 []byte, arg3 func([]byte), ...) error
- type MocknetworkInterfaceMockRecorder
- func (mr *MocknetworkInterfaceMockRecorder) Close() *gomock.Call
- func (mr *MocknetworkInterfaceMockRecorder) GetPeers() *gomock.Call
- func (mr *MocknetworkInterfaceMockRecorder) PeerCount() *gomock.Call
- func (mr *MocknetworkInterfaceMockRecorder) Request(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockFetcher ¶
type MockFetcher struct {
// contains filtered or unexported fields
}
MockFetcher is a mock of Fetcher interface.
func NewMockFetcher ¶
func NewMockFetcher(ctrl *gomock.Controller) *MockFetcher
NewMockFetcher creates a new mock instance.
func (*MockFetcher) EXPECT ¶
func (m *MockFetcher) EXPECT() *MockFetcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFetcher) GetHash ¶
func (m *MockFetcher) GetHash(hash types.Hash32, h fetch.Hint, validateHash bool) chan fetch.HashDataPromiseResult
GetHash mocks base method.
type MockFetcherMockRecorder ¶
type MockFetcherMockRecorder struct {
// contains filtered or unexported fields
}
MockFetcherMockRecorder is the mock recorder for MockFetcher.
func (*MockFetcherMockRecorder) GetHash ¶
func (mr *MockFetcherMockRecorder) GetHash(hash, h, validateHash interface{}) *gomock.Call
GetHash indicates an expected call of GetHash.
func (*MockFetcherMockRecorder) GetHashes ¶
func (mr *MockFetcherMockRecorder) GetHashes(hash, hint, validateHash interface{}) *gomock.Call
GetHashes indicates an expected call of GetHashes.
func (*MockFetcherMockRecorder) Start ¶
func (mr *MockFetcherMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
func (*MockFetcherMockRecorder) Stop ¶
func (mr *MockFetcherMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
type MocknetworkInterface ¶
type MocknetworkInterface struct {
// contains filtered or unexported fields
}
MocknetworkInterface is a mock of networkInterface interface.
func NewMocknetworkInterface ¶
func NewMocknetworkInterface(ctrl *gomock.Controller) *MocknetworkInterface
NewMocknetworkInterface creates a new mock instance.
func (*MocknetworkInterface) Close ¶
func (m *MocknetworkInterface) Close() error
Close mocks base method.
func (*MocknetworkInterface) EXPECT ¶
func (m *MocknetworkInterface) EXPECT() *MocknetworkInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MocknetworkInterface) GetPeers ¶
func (m *MocknetworkInterface) GetPeers() []p2p.Peer
GetPeers mocks base method.
func (*MocknetworkInterface) PeerCount ¶
func (m *MocknetworkInterface) PeerCount() uint64
PeerCount mocks base method.
type MocknetworkInterfaceMockRecorder ¶
type MocknetworkInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MocknetworkInterfaceMockRecorder is the mock recorder for MocknetworkInterface.
func (*MocknetworkInterfaceMockRecorder) Close ¶
func (mr *MocknetworkInterfaceMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MocknetworkInterfaceMockRecorder) GetPeers ¶
func (mr *MocknetworkInterfaceMockRecorder) GetPeers() *gomock.Call
GetPeers indicates an expected call of GetPeers.
func (*MocknetworkInterfaceMockRecorder) PeerCount ¶
func (mr *MocknetworkInterfaceMockRecorder) PeerCount() *gomock.Call
PeerCount indicates an expected call of PeerCount.
func (*MocknetworkInterfaceMockRecorder) Request ¶
func (mr *MocknetworkInterfaceMockRecorder) Request(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
Request indicates an expected call of Request.