mocks

package
v0.73.0-preview.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

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

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

func (m *MockNetworkHistory) ListAllHistorySegments() (segment.Segments[segment.Full], error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL