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) (segment.Full, error)
- func (m *MockNetworkHistory) GetDatanodeBlockSpan(arg0 context.Context) (sqlstore.DatanodeBlockSpan, error)
- func (m *MockNetworkHistory) GetMostRecentHistorySegmentFromBootstrapPeers(arg0 context.Context, arg1 []int) (*networkhistory.PeerResponse, ...)
- func (m *MockNetworkHistory) ListAllHistorySegments() (segment.Segments[segment.Full], error)
- func (m *MockNetworkHistory) LoadNetworkHistoryIntoDatanode(arg0 context.Context, arg1 segment.ContiguousHistory[segment.Full], ...) (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) GetMostRecentHistorySegmentFromBootstrapPeers(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockNetworkHistoryMockRecorder) ListAllHistorySegments() *gomock.Call
- func (mr *MockNetworkHistoryMockRecorder) LoadNetworkHistoryIntoDatanode(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 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) (segment.Full, error)
FetchHistorySegment mocks base method.
func (*MockNetworkHistory) GetDatanodeBlockSpan ¶
func (m *MockNetworkHistory) GetDatanodeBlockSpan(arg0 context.Context) (sqlstore.DatanodeBlockSpan, error)
GetDatanodeBlockSpan mocks base method.
func (*MockNetworkHistory) GetMostRecentHistorySegmentFromBootstrapPeers ¶ added in v0.73.0
func (m *MockNetworkHistory) GetMostRecentHistorySegmentFromBootstrapPeers(arg0 context.Context, arg1 []int) (*networkhistory.PeerResponse, map[string]*v2.GetMostRecentNetworkHistorySegmentResponse, error)
GetMostRecentHistorySegmentFromBootstrapPeers mocks base method.
func (*MockNetworkHistory) ListAllHistorySegments ¶ added in v0.68.0
ListAllHistorySegments mocks base method.
func (*MockNetworkHistory) LoadNetworkHistoryIntoDatanode ¶
func (m *MockNetworkHistory) LoadNetworkHistoryIntoDatanode(arg0 context.Context, arg1 segment.ContiguousHistory[segment.Full], arg2 sqlstore.ConnectionConfig, arg3, arg4 bool) (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) GetMostRecentHistorySegmentFromBootstrapPeers ¶ added in v0.73.0
func (mr *MockNetworkHistoryMockRecorder) GetMostRecentHistorySegmentFromBootstrapPeers(arg0, arg1 interface{}) *gomock.Call
GetMostRecentHistorySegmentFromBootstrapPeers indicates an expected call of GetMostRecentHistorySegmentFromBootstrapPeers.
func (*MockNetworkHistoryMockRecorder) ListAllHistorySegments ¶ added in v0.68.0
func (mr *MockNetworkHistoryMockRecorder) ListAllHistorySegments() *gomock.Call
ListAllHistorySegments indicates an expected call of ListAllHistorySegments.
func (*MockNetworkHistoryMockRecorder) LoadNetworkHistoryIntoDatanode ¶
func (mr *MockNetworkHistoryMockRecorder) LoadNetworkHistoryIntoDatanode(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
LoadNetworkHistoryIntoDatanode indicates an expected call of LoadNetworkHistoryIntoDatanode.