Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockNetworkHistory
- func (m *MockNetworkHistory) EXPECT() *MockNetworkHistoryMockRecorder
- func (m *MockNetworkHistory) FetchHistorySegment(arg0 context.Context, arg1 string) (store.SegmentIndexEntry, error)
- func (m *MockNetworkHistory) GetDatanodeBlockSpan(arg0 context.Context) (sqlstore.DatanodeBlockSpan, error)
- func (m *MockNetworkHistory) GetMostRecentHistorySegmentFromPeers(arg0 context.Context, arg1 []int) (*networkhistory.PeerResponse, ...)
- func (m *MockNetworkHistory) LoadNetworkHistoryIntoDatanode(arg0 context.Context, arg1 sqlstore.ConnectionConfig) (snapshot.LoadResult, error)
- type MockNetworkHistoryMockRecorder
- func (mr *MockNetworkHistoryMockRecorder) FetchHistorySegment(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockNetworkHistoryMockRecorder) GetDatanodeBlockSpan(arg0 interface{}) *gomock.Call
- func (mr *MockNetworkHistoryMockRecorder) GetMostRecentHistorySegmentFromPeers(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockNetworkHistoryMockRecorder) LoadNetworkHistoryIntoDatanode(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockNetworkHistory ¶
type MockNetworkHistory struct {
// contains filtered or unexported fields
}
MockNetworkHistory is a mock of NetworkHistory interface.
func NewMockNetworkHistory ¶
func NewMockNetworkHistory(ctrl *gomock.Controller) *MockNetworkHistory
NewMockNetworkHistory creates a new mock instance.
func (*MockNetworkHistory) EXPECT ¶
func (m *MockNetworkHistory) EXPECT() *MockNetworkHistoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNetworkHistory) FetchHistorySegment ¶
func (m *MockNetworkHistory) FetchHistorySegment(arg0 context.Context, arg1 string) (store.SegmentIndexEntry, error)
FetchHistorySegment mocks base method.
func (*MockNetworkHistory) GetDatanodeBlockSpan ¶
func (m *MockNetworkHistory) GetDatanodeBlockSpan(arg0 context.Context) (sqlstore.DatanodeBlockSpan, error)
GetDatanodeBlockSpan mocks base method.
func (*MockNetworkHistory) GetMostRecentHistorySegmentFromPeers ¶
func (m *MockNetworkHistory) GetMostRecentHistorySegmentFromPeers(arg0 context.Context, arg1 []int) (*networkhistory.PeerResponse, map[string]*v2.GetMostRecentNetworkHistorySegmentResponse, error)
GetMostRecentHistorySegmentFromPeers mocks base method.
func (*MockNetworkHistory) LoadNetworkHistoryIntoDatanode ¶
func (m *MockNetworkHistory) LoadNetworkHistoryIntoDatanode(arg0 context.Context, arg1 sqlstore.ConnectionConfig) (snapshot.LoadResult, error)
LoadNetworkHistoryIntoDatanode mocks base method.
type MockNetworkHistoryMockRecorder ¶
type MockNetworkHistoryMockRecorder struct {
// contains filtered or unexported fields
}
MockNetworkHistoryMockRecorder is the mock recorder for MockNetworkHistory.
func (*MockNetworkHistoryMockRecorder) FetchHistorySegment ¶
func (mr *MockNetworkHistoryMockRecorder) FetchHistorySegment(arg0, arg1 interface{}) *gomock.Call
FetchHistorySegment indicates an expected call of FetchHistorySegment.
func (*MockNetworkHistoryMockRecorder) GetDatanodeBlockSpan ¶
func (mr *MockNetworkHistoryMockRecorder) GetDatanodeBlockSpan(arg0 interface{}) *gomock.Call
GetDatanodeBlockSpan indicates an expected call of GetDatanodeBlockSpan.
func (*MockNetworkHistoryMockRecorder) GetMostRecentHistorySegmentFromPeers ¶
func (mr *MockNetworkHistoryMockRecorder) GetMostRecentHistorySegmentFromPeers(arg0, arg1 interface{}) *gomock.Call
GetMostRecentHistorySegmentFromPeers indicates an expected call of GetMostRecentHistorySegmentFromPeers.
func (*MockNetworkHistoryMockRecorder) LoadNetworkHistoryIntoDatanode ¶
func (mr *MockNetworkHistoryMockRecorder) LoadNetworkHistoryIntoDatanode(arg0, arg1 interface{}) *gomock.Call
LoadNetworkHistoryIntoDatanode indicates an expected call of LoadNetworkHistoryIntoDatanode.