mocks

package
v0.72.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: MIT 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) GetMostRecentHistorySegmentFromPeers

func (m *MockNetworkHistory) GetMostRecentHistorySegmentFromPeers(arg0 context.Context, arg1 []int) (*networkhistory.PeerResponse, map[string]*v2.GetMostRecentNetworkHistorySegmentResponse, error)

GetMostRecentHistorySegmentFromPeers 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) GetMostRecentHistorySegmentFromPeers

func (mr *MockNetworkHistoryMockRecorder) GetMostRecentHistorySegmentFromPeers(arg0, arg1 interface{}) *gomock.Call

GetMostRecentHistorySegmentFromPeers indicates an expected call of GetMostRecentHistorySegmentFromPeers.

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