Documentation ¶
Overview ¶
Package commonmock is a generated GoMock package.
Index ¶
- type Sender
- func (m *Sender) EXPECT() *SenderMockRecorder
- func (m *Sender) SendAccepted(ctx context.Context, nodeID ids.NodeID, requestID uint32, ...)
- func (m *Sender) SendAcceptedFrontier(ctx context.Context, nodeID ids.NodeID, requestID uint32, containerID ids.ID)
- func (m *Sender) SendAcceptedStateSummary(ctx context.Context, nodeID ids.NodeID, requestID uint32, summaryIDs []ids.ID)
- func (m *Sender) SendAncestors(ctx context.Context, nodeID ids.NodeID, requestID uint32, containers [][]byte)
- func (m *Sender) SendAppError(ctx context.Context, nodeID ids.NodeID, requestID uint32, errorCode int32, ...) error
- func (m *Sender) SendAppGossip(ctx context.Context, config common.SendConfig, appGossipBytes []byte) error
- func (m *Sender) SendAppRequest(ctx context.Context, nodeIDs set.Set[ids.NodeID], requestID uint32, ...) error
- func (m *Sender) SendAppResponse(ctx context.Context, nodeID ids.NodeID, requestID uint32, ...) error
- func (m *Sender) SendChits(ctx context.Context, nodeID ids.NodeID, requestID uint32, ...)
- func (m *Sender) SendGet(ctx context.Context, nodeID ids.NodeID, requestID uint32, containerID ids.ID)
- func (m *Sender) SendGetAccepted(ctx context.Context, nodeIDs set.Set[ids.NodeID], requestID uint32, ...)
- func (m *Sender) SendGetAcceptedFrontier(ctx context.Context, nodeIDs set.Set[ids.NodeID], requestID uint32)
- func (m *Sender) SendGetAcceptedStateSummary(ctx context.Context, nodeIDs set.Set[ids.NodeID], requestID uint32, ...)
- func (m *Sender) SendGetAncestors(ctx context.Context, nodeID ids.NodeID, requestID uint32, containerID ids.ID)
- func (m *Sender) SendGetStateSummaryFrontier(ctx context.Context, nodeIDs set.Set[ids.NodeID], requestID uint32)
- func (m *Sender) SendPullQuery(ctx context.Context, nodeIDs set.Set[ids.NodeID], requestID uint32, ...)
- func (m *Sender) SendPushQuery(ctx context.Context, nodeIDs set.Set[ids.NodeID], requestID uint32, ...)
- func (m *Sender) SendPut(ctx context.Context, nodeID ids.NodeID, requestID uint32, container []byte)
- func (m *Sender) SendStateSummaryFrontier(ctx context.Context, nodeID ids.NodeID, requestID uint32, summary []byte)
- type SenderMockRecorder
- func (mr *SenderMockRecorder) SendAccepted(ctx, nodeID, requestID, containerIDs any) *gomock.Call
- func (mr *SenderMockRecorder) SendAcceptedFrontier(ctx, nodeID, requestID, containerID any) *gomock.Call
- func (mr *SenderMockRecorder) SendAcceptedStateSummary(ctx, nodeID, requestID, summaryIDs any) *gomock.Call
- func (mr *SenderMockRecorder) SendAncestors(ctx, nodeID, requestID, containers any) *gomock.Call
- func (mr *SenderMockRecorder) SendAppError(ctx, nodeID, requestID, errorCode, errorMessage any) *gomock.Call
- func (mr *SenderMockRecorder) SendAppGossip(ctx, config, appGossipBytes any) *gomock.Call
- func (mr *SenderMockRecorder) SendAppRequest(ctx, nodeIDs, requestID, appRequestBytes any) *gomock.Call
- func (mr *SenderMockRecorder) SendAppResponse(ctx, nodeID, requestID, appResponseBytes any) *gomock.Call
- func (mr *SenderMockRecorder) SendChits(ctx, nodeID, requestID, preferredID, preferredIDAtHeight, acceptedID, ... any) *gomock.Call
- func (mr *SenderMockRecorder) SendGet(ctx, nodeID, requestID, containerID any) *gomock.Call
- func (mr *SenderMockRecorder) SendGetAccepted(ctx, nodeIDs, requestID, containerIDs any) *gomock.Call
- func (mr *SenderMockRecorder) SendGetAcceptedFrontier(ctx, nodeIDs, requestID any) *gomock.Call
- func (mr *SenderMockRecorder) SendGetAcceptedStateSummary(ctx, nodeIDs, requestID, heights any) *gomock.Call
- func (mr *SenderMockRecorder) SendGetAncestors(ctx, nodeID, requestID, containerID any) *gomock.Call
- func (mr *SenderMockRecorder) SendGetStateSummaryFrontier(ctx, nodeIDs, requestID any) *gomock.Call
- func (mr *SenderMockRecorder) SendPullQuery(ctx, nodeIDs, requestID, containerID, requestedHeight any) *gomock.Call
- func (mr *SenderMockRecorder) SendPushQuery(ctx, nodeIDs, requestID, container, requestedHeight any) *gomock.Call
- func (mr *SenderMockRecorder) SendPut(ctx, nodeID, requestID, container any) *gomock.Call
- func (mr *SenderMockRecorder) SendStateSummaryFrontier(ctx, nodeID, requestID, summary any) *gomock.Call
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, acceptedHeight uint64)
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.
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, acceptedHeight 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.