commonmock

package
v1.11.11 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package commonmock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sender

type Sender struct {
	// contains filtered or unexported fields
}

Sender is a mock of Sender interface.

func NewSender

func NewSender(ctrl *gomock.Controller) *Sender

NewSender creates a new mock instance.

func (*Sender) EXPECT

func (m *Sender) EXPECT() *SenderMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*Sender) SendAccepted

func (m *Sender) SendAccepted(ctx context.Context, nodeID ids.NodeID, requestID uint32, containerIDs []ids.ID)

SendAccepted mocks base method.

func (*Sender) SendAcceptedFrontier

func (m *Sender) SendAcceptedFrontier(ctx context.Context, nodeID ids.NodeID, requestID uint32, containerID ids.ID)

SendAcceptedFrontier mocks base method.

func (*Sender) SendAcceptedStateSummary

func (m *Sender) SendAcceptedStateSummary(ctx context.Context, nodeID ids.NodeID, requestID uint32, summaryIDs []ids.ID)

SendAcceptedStateSummary mocks base method.

func (*Sender) SendAncestors

func (m *Sender) SendAncestors(ctx context.Context, nodeID ids.NodeID, requestID uint32, containers [][]byte)

SendAncestors mocks base method.

func (*Sender) SendAppError

func (m *Sender) SendAppError(ctx context.Context, nodeID ids.NodeID, requestID uint32, errorCode int32, errorMessage string) error

SendAppError mocks base method.

func (*Sender) SendAppGossip

func (m *Sender) SendAppGossip(ctx context.Context, config common.SendConfig, appGossipBytes []byte) error

SendAppGossip mocks base method.

func (*Sender) SendAppRequest

func (m *Sender) SendAppRequest(ctx context.Context, nodeIDs set.Set[ids.NodeID], requestID uint32, appRequestBytes []byte) error

SendAppRequest mocks base method.

func (*Sender) SendAppResponse

func (m *Sender) SendAppResponse(ctx context.Context, nodeID ids.NodeID, requestID uint32, appResponseBytes []byte) error

SendAppResponse mocks base method.

func (*Sender) SendChits

func (m *Sender) SendChits(ctx context.Context, nodeID ids.NodeID, requestID uint32, preferredID, preferredIDAtHeight, acceptedID ids.ID)

SendChits mocks base method.

func (*Sender) SendGet

func (m *Sender) SendGet(ctx context.Context, nodeID ids.NodeID, requestID uint32, containerID ids.ID)

SendGet mocks base method.

func (*Sender) SendGetAccepted

func (m *Sender) SendGetAccepted(ctx context.Context, nodeIDs set.Set[ids.NodeID], requestID uint32, containerIDs []ids.ID)

SendGetAccepted mocks base method.

func (*Sender) SendGetAcceptedFrontier

func (m *Sender) SendGetAcceptedFrontier(ctx context.Context, nodeIDs set.Set[ids.NodeID], requestID uint32)

SendGetAcceptedFrontier mocks base method.

func (*Sender) SendGetAcceptedStateSummary

func (m *Sender) SendGetAcceptedStateSummary(ctx context.Context, nodeIDs set.Set[ids.NodeID], requestID uint32, heights []uint64)

SendGetAcceptedStateSummary mocks base method.

func (*Sender) SendGetAncestors

func (m *Sender) SendGetAncestors(ctx context.Context, nodeID ids.NodeID, requestID uint32, containerID ids.ID)

SendGetAncestors mocks base method.

func (*Sender) SendGetStateSummaryFrontier

func (m *Sender) SendGetStateSummaryFrontier(ctx context.Context, nodeIDs set.Set[ids.NodeID], requestID uint32)

SendGetStateSummaryFrontier mocks base method.

func (*Sender) SendPullQuery

func (m *Sender) SendPullQuery(ctx context.Context, nodeIDs set.Set[ids.NodeID], requestID uint32, containerID ids.ID, requestedHeight uint64)

SendPullQuery mocks base method.

func (*Sender) SendPushQuery

func (m *Sender) SendPushQuery(ctx context.Context, nodeIDs set.Set[ids.NodeID], requestID uint32, container []byte, requestedHeight uint64)

SendPushQuery mocks base method.

func (*Sender) SendPut

func (m *Sender) SendPut(ctx context.Context, nodeID ids.NodeID, requestID uint32, container []byte)

SendPut mocks base method.

func (*Sender) SendStateSummaryFrontier

func (m *Sender) SendStateSummaryFrontier(ctx context.Context, nodeID ids.NodeID, requestID uint32, summary []byte)

SendStateSummaryFrontier mocks base method.

type SenderMockRecorder

type SenderMockRecorder struct {
	// contains filtered or unexported fields
}

SenderMockRecorder is the mock recorder for Sender.

func (*SenderMockRecorder) SendAccepted

func (mr *SenderMockRecorder) SendAccepted(ctx, nodeID, requestID, containerIDs any) *gomock.Call

SendAccepted indicates an expected call of SendAccepted.

func (*SenderMockRecorder) SendAcceptedFrontier

func (mr *SenderMockRecorder) SendAcceptedFrontier(ctx, nodeID, requestID, containerID any) *gomock.Call

SendAcceptedFrontier indicates an expected call of SendAcceptedFrontier.

func (*SenderMockRecorder) SendAcceptedStateSummary

func (mr *SenderMockRecorder) SendAcceptedStateSummary(ctx, nodeID, requestID, summaryIDs any) *gomock.Call

SendAcceptedStateSummary indicates an expected call of SendAcceptedStateSummary.

func (*SenderMockRecorder) SendAncestors

func (mr *SenderMockRecorder) SendAncestors(ctx, nodeID, requestID, containers any) *gomock.Call

SendAncestors indicates an expected call of SendAncestors.

func (*SenderMockRecorder) SendAppError

func (mr *SenderMockRecorder) SendAppError(ctx, nodeID, requestID, errorCode, errorMessage any) *gomock.Call

SendAppError indicates an expected call of SendAppError.

func (*SenderMockRecorder) SendAppGossip

func (mr *SenderMockRecorder) SendAppGossip(ctx, config, appGossipBytes any) *gomock.Call

SendAppGossip indicates an expected call of SendAppGossip.

func (*SenderMockRecorder) SendAppRequest

func (mr *SenderMockRecorder) SendAppRequest(ctx, nodeIDs, requestID, appRequestBytes any) *gomock.Call

SendAppRequest indicates an expected call of SendAppRequest.

func (*SenderMockRecorder) SendAppResponse

func (mr *SenderMockRecorder) SendAppResponse(ctx, nodeID, requestID, appResponseBytes any) *gomock.Call

SendAppResponse indicates an expected call of SendAppResponse.

func (*SenderMockRecorder) SendChits

func (mr *SenderMockRecorder) SendChits(ctx, nodeID, requestID, preferredID, preferredIDAtHeight, acceptedID any) *gomock.Call

SendChits indicates an expected call of SendChits.

func (*SenderMockRecorder) SendGet

func (mr *SenderMockRecorder) SendGet(ctx, nodeID, requestID, containerID any) *gomock.Call

SendGet indicates an expected call of SendGet.

func (*SenderMockRecorder) SendGetAccepted

func (mr *SenderMockRecorder) SendGetAccepted(ctx, nodeIDs, requestID, containerIDs any) *gomock.Call

SendGetAccepted indicates an expected call of SendGetAccepted.

func (*SenderMockRecorder) SendGetAcceptedFrontier

func (mr *SenderMockRecorder) SendGetAcceptedFrontier(ctx, nodeIDs, requestID any) *gomock.Call

SendGetAcceptedFrontier indicates an expected call of SendGetAcceptedFrontier.

func (*SenderMockRecorder) SendGetAcceptedStateSummary

func (mr *SenderMockRecorder) SendGetAcceptedStateSummary(ctx, nodeIDs, requestID, heights any) *gomock.Call

SendGetAcceptedStateSummary indicates an expected call of SendGetAcceptedStateSummary.

func (*SenderMockRecorder) SendGetAncestors

func (mr *SenderMockRecorder) SendGetAncestors(ctx, nodeID, requestID, containerID any) *gomock.Call

SendGetAncestors indicates an expected call of SendGetAncestors.

func (*SenderMockRecorder) SendGetStateSummaryFrontier

func (mr *SenderMockRecorder) SendGetStateSummaryFrontier(ctx, nodeIDs, requestID any) *gomock.Call

SendGetStateSummaryFrontier indicates an expected call of SendGetStateSummaryFrontier.

func (*SenderMockRecorder) SendPullQuery

func (mr *SenderMockRecorder) SendPullQuery(ctx, nodeIDs, requestID, containerID, requestedHeight any) *gomock.Call

SendPullQuery indicates an expected call of SendPullQuery.

func (*SenderMockRecorder) SendPushQuery

func (mr *SenderMockRecorder) SendPushQuery(ctx, nodeIDs, requestID, container, requestedHeight any) *gomock.Call

SendPushQuery indicates an expected call of SendPushQuery.

func (*SenderMockRecorder) SendPut

func (mr *SenderMockRecorder) SendPut(ctx, nodeID, requestID, container any) *gomock.Call

SendPut indicates an expected call of SendPut.

func (*SenderMockRecorder) SendStateSummaryFrontier

func (mr *SenderMockRecorder) SendStateSummaryFrontier(ctx, nodeID, requestID, summary any) *gomock.Call

SendStateSummaryFrontier indicates an expected call of SendStateSummaryFrontier.

Jump to

Keyboard shortcuts

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