mocks

package
v1.7.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 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 MockatxSyncer added in v1.4.0

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

MockatxSyncer is a mock of atxSyncer interface.

func NewMockatxSyncer added in v1.4.0

func NewMockatxSyncer(ctrl *gomock.Controller) *MockatxSyncer

NewMockatxSyncer creates a new mock instance.

func (*MockatxSyncer) Download added in v1.4.0

func (m *MockatxSyncer) Download(arg0 context.Context, arg1 types.EpochID, arg2 time.Time) error

Download mocks base method.

func (*MockatxSyncer) EXPECT added in v1.4.0

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

type MockatxSyncerDownloadCall added in v1.4.0

type MockatxSyncerDownloadCall struct {
	*gomock.Call
}

MockatxSyncerDownloadCall wrap *gomock.Call

func (*MockatxSyncerDownloadCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockatxSyncerDownloadCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockatxSyncerDownloadCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockatxSyncerMockRecorder added in v1.4.0

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

MockatxSyncerMockRecorder is the mock recorder for MockatxSyncer.

func (*MockatxSyncerMockRecorder) Download added in v1.4.0

func (mr *MockatxSyncerMockRecorder) Download(arg0, arg1, arg2 any) *MockatxSyncerDownloadCall

Download indicates an expected call of Download.

type MockcertHandler

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

MockcertHandler is a mock of certHandler interface.

func NewMockcertHandler

func NewMockcertHandler(ctrl *gomock.Controller) *MockcertHandler

NewMockcertHandler creates a new mock instance.

func (*MockcertHandler) EXPECT

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

func (*MockcertHandler) HandleSyncedCertificate

func (m *MockcertHandler) HandleSyncedCertificate(arg0 context.Context, arg1 types.LayerID, arg2 *types.Certificate) error

HandleSyncedCertificate mocks base method.

type MockcertHandlerHandleSyncedCertificateCall added in v1.4.0

type MockcertHandlerHandleSyncedCertificateCall struct {
	*gomock.Call
}

MockcertHandlerHandleSyncedCertificateCall wrap *gomock.Call

func (*MockcertHandlerHandleSyncedCertificateCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockcertHandlerHandleSyncedCertificateCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockcertHandlerHandleSyncedCertificateCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockcertHandlerMockRecorder

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

MockcertHandlerMockRecorder is the mock recorder for MockcertHandler.

func (*MockcertHandlerMockRecorder) HandleSyncedCertificate

func (mr *MockcertHandlerMockRecorder) HandleSyncedCertificate(arg0, arg1, arg2 any) *MockcertHandlerHandleSyncedCertificateCall

HandleSyncedCertificate indicates an expected call of HandleSyncedCertificate.

type MockfetchLogic

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

MockfetchLogic is a mock of fetchLogic interface.

func NewMockfetchLogic

func NewMockfetchLogic(ctrl *gomock.Controller) *MockfetchLogic

NewMockfetchLogic creates a new mock instance.

func (*MockfetchLogic) EXPECT

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

func (*MockfetchLogic) GetAtxs

func (m *MockfetchLogic) GetAtxs(arg0 context.Context, arg1 []types.ATXID, arg2 ...system.GetAtxOpt) error

GetAtxs mocks base method.

func (*MockfetchLogic) GetBallots

func (m *MockfetchLogic) GetBallots(arg0 context.Context, arg1 []types.BallotID) error

GetBallots mocks base method.

func (*MockfetchLogic) GetBlocks

func (m *MockfetchLogic) GetBlocks(arg0 context.Context, arg1 []types.BlockID) error

GetBlocks mocks base method.

func (*MockfetchLogic) GetCert added in v1.1.0

func (m *MockfetchLogic) GetCert(arg0 context.Context, arg1 types.LayerID, arg2 types.BlockID, arg3 []p2p.Peer) (*types.Certificate, error)

GetCert mocks base method.

func (*MockfetchLogic) GetLayerData

func (m *MockfetchLogic) GetLayerData(arg0 context.Context, arg1 p2p.Peer, arg2 types.LayerID) ([]byte, error)

GetLayerData mocks base method.

func (*MockfetchLogic) GetLayerOpinions

func (m *MockfetchLogic) GetLayerOpinions(arg0 context.Context, arg1 p2p.Peer, arg2 types.LayerID) ([]byte, error)

GetLayerOpinions mocks base method.

func (*MockfetchLogic) GetMalfeasanceProofs

func (m *MockfetchLogic) GetMalfeasanceProofs(arg0 context.Context, arg1 []types.NodeID) error

GetMalfeasanceProofs mocks base method.

func (*MockfetchLogic) GetMaliciousIDs

func (m *MockfetchLogic) GetMaliciousIDs(arg0 context.Context, arg1 p2p.Peer) ([]types.NodeID, error)

GetMaliciousIDs mocks base method.

func (*MockfetchLogic) PeerEpochInfo

func (m *MockfetchLogic) PeerEpochInfo(arg0 context.Context, arg1 p2p.Peer, arg2 types.EpochID) (*fetch.EpochData, error)

PeerEpochInfo mocks base method.

func (*MockfetchLogic) PeerMeshHashes

func (m *MockfetchLogic) PeerMeshHashes(arg0 context.Context, arg1 p2p.Peer, arg2 *fetch.MeshHashRequest) (*fetch.MeshHashes, error)

PeerMeshHashes mocks base method.

func (*MockfetchLogic) PollLayerData

func (m *MockfetchLogic) PollLayerData(arg0 context.Context, arg1 types.LayerID, arg2 ...p2p.Peer) error

PollLayerData mocks base method.

func (*MockfetchLogic) PollLayerOpinions

func (m *MockfetchLogic) PollLayerOpinions(arg0 context.Context, arg1 types.LayerID, arg2 bool, arg3 []p2p.Peer) ([]*fetch.LayerOpinion, []*types.Certificate, error)

PollLayerOpinions mocks base method.

func (*MockfetchLogic) RegisterPeerHashes

func (m *MockfetchLogic) RegisterPeerHashes(peer p2p.Peer, hashes []types.Hash32)

RegisterPeerHashes mocks base method.

func (*MockfetchLogic) SelectBestShuffled added in v1.2.6

func (m *MockfetchLogic) SelectBestShuffled(arg0 int) []p2p.Peer

SelectBestShuffled mocks base method.

type MockfetchLogicGetAtxsCall added in v1.4.0

type MockfetchLogicGetAtxsCall struct {
	*gomock.Call
}

MockfetchLogicGetAtxsCall wrap *gomock.Call

func (*MockfetchLogicGetAtxsCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockfetchLogicGetAtxsCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockfetchLogicGetAtxsCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockfetchLogicGetBallotsCall added in v1.4.0

type MockfetchLogicGetBallotsCall struct {
	*gomock.Call
}

MockfetchLogicGetBallotsCall wrap *gomock.Call

func (*MockfetchLogicGetBallotsCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockfetchLogicGetBallotsCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockfetchLogicGetBallotsCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockfetchLogicGetBlocksCall added in v1.4.0

type MockfetchLogicGetBlocksCall struct {
	*gomock.Call
}

MockfetchLogicGetBlocksCall wrap *gomock.Call

func (*MockfetchLogicGetBlocksCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockfetchLogicGetBlocksCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockfetchLogicGetBlocksCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockfetchLogicGetCertCall added in v1.4.0

type MockfetchLogicGetCertCall struct {
	*gomock.Call
}

MockfetchLogicGetCertCall wrap *gomock.Call

func (*MockfetchLogicGetCertCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockfetchLogicGetCertCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockfetchLogicGetCertCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockfetchLogicGetLayerDataCall added in v1.4.0

type MockfetchLogicGetLayerDataCall struct {
	*gomock.Call
}

MockfetchLogicGetLayerDataCall wrap *gomock.Call

func (*MockfetchLogicGetLayerDataCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockfetchLogicGetLayerDataCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockfetchLogicGetLayerDataCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockfetchLogicGetLayerOpinionsCall added in v1.4.0

type MockfetchLogicGetLayerOpinionsCall struct {
	*gomock.Call
}

MockfetchLogicGetLayerOpinionsCall wrap *gomock.Call

func (*MockfetchLogicGetLayerOpinionsCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockfetchLogicGetLayerOpinionsCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockfetchLogicGetLayerOpinionsCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockfetchLogicGetMalfeasanceProofsCall added in v1.4.0

type MockfetchLogicGetMalfeasanceProofsCall struct {
	*gomock.Call
}

MockfetchLogicGetMalfeasanceProofsCall wrap *gomock.Call

func (*MockfetchLogicGetMalfeasanceProofsCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockfetchLogicGetMalfeasanceProofsCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockfetchLogicGetMalfeasanceProofsCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockfetchLogicGetMaliciousIDsCall added in v1.4.0

type MockfetchLogicGetMaliciousIDsCall struct {
	*gomock.Call
}

MockfetchLogicGetMaliciousIDsCall wrap *gomock.Call

func (*MockfetchLogicGetMaliciousIDsCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockfetchLogicGetMaliciousIDsCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockfetchLogicGetMaliciousIDsCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockfetchLogicMockRecorder

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

MockfetchLogicMockRecorder is the mock recorder for MockfetchLogic.

func (*MockfetchLogicMockRecorder) GetAtxs

func (mr *MockfetchLogicMockRecorder) GetAtxs(arg0, arg1 any, arg2 ...any) *MockfetchLogicGetAtxsCall

GetAtxs indicates an expected call of GetAtxs.

func (*MockfetchLogicMockRecorder) GetBallots

func (mr *MockfetchLogicMockRecorder) GetBallots(arg0, arg1 any) *MockfetchLogicGetBallotsCall

GetBallots indicates an expected call of GetBallots.

func (*MockfetchLogicMockRecorder) GetBlocks

func (mr *MockfetchLogicMockRecorder) GetBlocks(arg0, arg1 any) *MockfetchLogicGetBlocksCall

GetBlocks indicates an expected call of GetBlocks.

func (*MockfetchLogicMockRecorder) GetCert added in v1.1.0

func (mr *MockfetchLogicMockRecorder) GetCert(arg0, arg1, arg2, arg3 any) *MockfetchLogicGetCertCall

GetCert indicates an expected call of GetCert.

func (*MockfetchLogicMockRecorder) GetLayerData

func (mr *MockfetchLogicMockRecorder) GetLayerData(arg0, arg1, arg2 any) *MockfetchLogicGetLayerDataCall

GetLayerData indicates an expected call of GetLayerData.

func (*MockfetchLogicMockRecorder) GetLayerOpinions

func (mr *MockfetchLogicMockRecorder) GetLayerOpinions(arg0, arg1, arg2 any) *MockfetchLogicGetLayerOpinionsCall

GetLayerOpinions indicates an expected call of GetLayerOpinions.

func (*MockfetchLogicMockRecorder) GetMalfeasanceProofs

func (mr *MockfetchLogicMockRecorder) GetMalfeasanceProofs(arg0, arg1 any) *MockfetchLogicGetMalfeasanceProofsCall

GetMalfeasanceProofs indicates an expected call of GetMalfeasanceProofs.

func (*MockfetchLogicMockRecorder) GetMaliciousIDs

func (mr *MockfetchLogicMockRecorder) GetMaliciousIDs(arg0, arg1 any) *MockfetchLogicGetMaliciousIDsCall

GetMaliciousIDs indicates an expected call of GetMaliciousIDs.

func (*MockfetchLogicMockRecorder) PeerEpochInfo

func (mr *MockfetchLogicMockRecorder) PeerEpochInfo(arg0, arg1, arg2 any) *MockfetchLogicPeerEpochInfoCall

PeerEpochInfo indicates an expected call of PeerEpochInfo.

func (*MockfetchLogicMockRecorder) PeerMeshHashes

func (mr *MockfetchLogicMockRecorder) PeerMeshHashes(arg0, arg1, arg2 any) *MockfetchLogicPeerMeshHashesCall

PeerMeshHashes indicates an expected call of PeerMeshHashes.

func (*MockfetchLogicMockRecorder) PollLayerData

func (mr *MockfetchLogicMockRecorder) PollLayerData(arg0, arg1 any, arg2 ...any) *MockfetchLogicPollLayerDataCall

PollLayerData indicates an expected call of PollLayerData.

func (*MockfetchLogicMockRecorder) PollLayerOpinions

func (mr *MockfetchLogicMockRecorder) PollLayerOpinions(arg0, arg1, arg2, arg3 any) *MockfetchLogicPollLayerOpinionsCall

PollLayerOpinions indicates an expected call of PollLayerOpinions.

func (*MockfetchLogicMockRecorder) RegisterPeerHashes

func (mr *MockfetchLogicMockRecorder) RegisterPeerHashes(peer, hashes any) *MockfetchLogicRegisterPeerHashesCall

RegisterPeerHashes indicates an expected call of RegisterPeerHashes.

func (*MockfetchLogicMockRecorder) SelectBestShuffled added in v1.2.6

SelectBestShuffled indicates an expected call of SelectBestShuffled.

type MockfetchLogicPeerEpochInfoCall added in v1.4.0

type MockfetchLogicPeerEpochInfoCall struct {
	*gomock.Call
}

MockfetchLogicPeerEpochInfoCall wrap *gomock.Call

func (*MockfetchLogicPeerEpochInfoCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockfetchLogicPeerEpochInfoCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockfetchLogicPeerEpochInfoCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockfetchLogicPeerMeshHashesCall added in v1.4.0

type MockfetchLogicPeerMeshHashesCall struct {
	*gomock.Call
}

MockfetchLogicPeerMeshHashesCall wrap *gomock.Call

func (*MockfetchLogicPeerMeshHashesCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockfetchLogicPeerMeshHashesCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockfetchLogicPeerMeshHashesCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockfetchLogicPollLayerDataCall added in v1.4.0

type MockfetchLogicPollLayerDataCall struct {
	*gomock.Call
}

MockfetchLogicPollLayerDataCall wrap *gomock.Call

func (*MockfetchLogicPollLayerDataCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockfetchLogicPollLayerDataCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockfetchLogicPollLayerDataCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockfetchLogicPollLayerOpinionsCall added in v1.4.0

type MockfetchLogicPollLayerOpinionsCall struct {
	*gomock.Call
}

MockfetchLogicPollLayerOpinionsCall wrap *gomock.Call

func (*MockfetchLogicPollLayerOpinionsCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockfetchLogicPollLayerOpinionsCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockfetchLogicPollLayerOpinionsCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockfetchLogicRegisterPeerHashesCall added in v1.4.0

type MockfetchLogicRegisterPeerHashesCall struct {
	*gomock.Call
}

MockfetchLogicRegisterPeerHashesCall wrap *gomock.Call

func (*MockfetchLogicRegisterPeerHashesCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockfetchLogicRegisterPeerHashesCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockfetchLogicRegisterPeerHashesCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockfetchLogicSelectBestShuffledCall added in v1.4.0

type MockfetchLogicSelectBestShuffledCall struct {
	*gomock.Call
}

MockfetchLogicSelectBestShuffledCall wrap *gomock.Call

func (*MockfetchLogicSelectBestShuffledCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockfetchLogicSelectBestShuffledCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockfetchLogicSelectBestShuffledCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type Mockfetcher

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

Mockfetcher is a mock of fetcher interface.

func NewMockfetcher

func NewMockfetcher(ctrl *gomock.Controller) *Mockfetcher

NewMockfetcher creates a new mock instance.

func (*Mockfetcher) EXPECT

func (m *Mockfetcher) EXPECT() *MockfetcherMockRecorder

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

func (*Mockfetcher) GetAtxs

func (m *Mockfetcher) GetAtxs(arg0 context.Context, arg1 []types.ATXID, arg2 ...system.GetAtxOpt) error

GetAtxs mocks base method.

func (*Mockfetcher) GetBallots

func (m *Mockfetcher) GetBallots(arg0 context.Context, arg1 []types.BallotID) error

GetBallots mocks base method.

func (*Mockfetcher) GetBlocks

func (m *Mockfetcher) GetBlocks(arg0 context.Context, arg1 []types.BlockID) error

GetBlocks mocks base method.

func (*Mockfetcher) GetCert added in v1.1.0

func (m *Mockfetcher) GetCert(arg0 context.Context, arg1 types.LayerID, arg2 types.BlockID, arg3 []p2p.Peer) (*types.Certificate, error)

GetCert mocks base method.

func (*Mockfetcher) GetLayerData

func (m *Mockfetcher) GetLayerData(arg0 context.Context, arg1 p2p.Peer, arg2 types.LayerID) ([]byte, error)

GetLayerData mocks base method.

func (*Mockfetcher) GetLayerOpinions

func (m *Mockfetcher) GetLayerOpinions(arg0 context.Context, arg1 p2p.Peer, arg2 types.LayerID) ([]byte, error)

GetLayerOpinions mocks base method.

func (*Mockfetcher) GetMalfeasanceProofs

func (m *Mockfetcher) GetMalfeasanceProofs(arg0 context.Context, arg1 []types.NodeID) error

GetMalfeasanceProofs mocks base method.

func (*Mockfetcher) GetMaliciousIDs

func (m *Mockfetcher) GetMaliciousIDs(arg0 context.Context, arg1 p2p.Peer) ([]types.NodeID, error)

GetMaliciousIDs mocks base method.

func (*Mockfetcher) PeerEpochInfo

func (m *Mockfetcher) PeerEpochInfo(arg0 context.Context, arg1 p2p.Peer, arg2 types.EpochID) (*fetch.EpochData, error)

PeerEpochInfo mocks base method.

func (*Mockfetcher) PeerMeshHashes

func (m *Mockfetcher) PeerMeshHashes(arg0 context.Context, arg1 p2p.Peer, arg2 *fetch.MeshHashRequest) (*fetch.MeshHashes, error)

PeerMeshHashes mocks base method.

func (*Mockfetcher) RegisterPeerHashes

func (m *Mockfetcher) RegisterPeerHashes(peer p2p.Peer, hashes []types.Hash32)

RegisterPeerHashes mocks base method.

func (*Mockfetcher) SelectBestShuffled added in v1.2.6

func (m *Mockfetcher) SelectBestShuffled(arg0 int) []p2p.Peer

SelectBestShuffled mocks base method.

type MockfetcherGetAtxsCall added in v1.4.0

type MockfetcherGetAtxsCall struct {
	*gomock.Call
}

MockfetcherGetAtxsCall wrap *gomock.Call

func (*MockfetcherGetAtxsCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockfetcherGetAtxsCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockfetcherGetAtxsCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockfetcherGetBallotsCall added in v1.4.0

type MockfetcherGetBallotsCall struct {
	*gomock.Call
}

MockfetcherGetBallotsCall wrap *gomock.Call

func (*MockfetcherGetBallotsCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockfetcherGetBallotsCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockfetcherGetBallotsCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockfetcherGetBlocksCall added in v1.4.0

type MockfetcherGetBlocksCall struct {
	*gomock.Call
}

MockfetcherGetBlocksCall wrap *gomock.Call

func (*MockfetcherGetBlocksCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockfetcherGetBlocksCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockfetcherGetBlocksCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockfetcherGetCertCall added in v1.4.0

type MockfetcherGetCertCall struct {
	*gomock.Call
}

MockfetcherGetCertCall wrap *gomock.Call

func (*MockfetcherGetCertCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockfetcherGetCertCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockfetcherGetCertCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockfetcherGetLayerDataCall added in v1.4.0

type MockfetcherGetLayerDataCall struct {
	*gomock.Call
}

MockfetcherGetLayerDataCall wrap *gomock.Call

func (*MockfetcherGetLayerDataCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockfetcherGetLayerDataCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockfetcherGetLayerDataCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockfetcherGetLayerOpinionsCall added in v1.4.0

type MockfetcherGetLayerOpinionsCall struct {
	*gomock.Call
}

MockfetcherGetLayerOpinionsCall wrap *gomock.Call

func (*MockfetcherGetLayerOpinionsCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockfetcherGetLayerOpinionsCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockfetcherGetLayerOpinionsCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockfetcherGetMalfeasanceProofsCall added in v1.4.0

type MockfetcherGetMalfeasanceProofsCall struct {
	*gomock.Call
}

MockfetcherGetMalfeasanceProofsCall wrap *gomock.Call

func (*MockfetcherGetMalfeasanceProofsCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockfetcherGetMalfeasanceProofsCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockfetcherGetMalfeasanceProofsCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockfetcherGetMaliciousIDsCall added in v1.4.0

type MockfetcherGetMaliciousIDsCall struct {
	*gomock.Call
}

MockfetcherGetMaliciousIDsCall wrap *gomock.Call

func (*MockfetcherGetMaliciousIDsCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockfetcherGetMaliciousIDsCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockfetcherGetMaliciousIDsCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockfetcherMockRecorder

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

MockfetcherMockRecorder is the mock recorder for Mockfetcher.

func (*MockfetcherMockRecorder) GetAtxs

func (mr *MockfetcherMockRecorder) GetAtxs(arg0, arg1 any, arg2 ...any) *MockfetcherGetAtxsCall

GetAtxs indicates an expected call of GetAtxs.

func (*MockfetcherMockRecorder) GetBallots

func (mr *MockfetcherMockRecorder) GetBallots(arg0, arg1 any) *MockfetcherGetBallotsCall

GetBallots indicates an expected call of GetBallots.

func (*MockfetcherMockRecorder) GetBlocks

func (mr *MockfetcherMockRecorder) GetBlocks(arg0, arg1 any) *MockfetcherGetBlocksCall

GetBlocks indicates an expected call of GetBlocks.

func (*MockfetcherMockRecorder) GetCert added in v1.1.0

func (mr *MockfetcherMockRecorder) GetCert(arg0, arg1, arg2, arg3 any) *MockfetcherGetCertCall

GetCert indicates an expected call of GetCert.

func (*MockfetcherMockRecorder) GetLayerData

func (mr *MockfetcherMockRecorder) GetLayerData(arg0, arg1, arg2 any) *MockfetcherGetLayerDataCall

GetLayerData indicates an expected call of GetLayerData.

func (*MockfetcherMockRecorder) GetLayerOpinions

func (mr *MockfetcherMockRecorder) GetLayerOpinions(arg0, arg1, arg2 any) *MockfetcherGetLayerOpinionsCall

GetLayerOpinions indicates an expected call of GetLayerOpinions.

func (*MockfetcherMockRecorder) GetMalfeasanceProofs

func (mr *MockfetcherMockRecorder) GetMalfeasanceProofs(arg0, arg1 any) *MockfetcherGetMalfeasanceProofsCall

GetMalfeasanceProofs indicates an expected call of GetMalfeasanceProofs.

func (*MockfetcherMockRecorder) GetMaliciousIDs

func (mr *MockfetcherMockRecorder) GetMaliciousIDs(arg0, arg1 any) *MockfetcherGetMaliciousIDsCall

GetMaliciousIDs indicates an expected call of GetMaliciousIDs.

func (*MockfetcherMockRecorder) PeerEpochInfo

func (mr *MockfetcherMockRecorder) PeerEpochInfo(arg0, arg1, arg2 any) *MockfetcherPeerEpochInfoCall

PeerEpochInfo indicates an expected call of PeerEpochInfo.

func (*MockfetcherMockRecorder) PeerMeshHashes

func (mr *MockfetcherMockRecorder) PeerMeshHashes(arg0, arg1, arg2 any) *MockfetcherPeerMeshHashesCall

PeerMeshHashes indicates an expected call of PeerMeshHashes.

func (*MockfetcherMockRecorder) RegisterPeerHashes

func (mr *MockfetcherMockRecorder) RegisterPeerHashes(peer, hashes any) *MockfetcherRegisterPeerHashesCall

RegisterPeerHashes indicates an expected call of RegisterPeerHashes.

func (*MockfetcherMockRecorder) SelectBestShuffled added in v1.2.6

func (mr *MockfetcherMockRecorder) SelectBestShuffled(arg0 any) *MockfetcherSelectBestShuffledCall

SelectBestShuffled indicates an expected call of SelectBestShuffled.

type MockfetcherPeerEpochInfoCall added in v1.4.0

type MockfetcherPeerEpochInfoCall struct {
	*gomock.Call
}

MockfetcherPeerEpochInfoCall wrap *gomock.Call

func (*MockfetcherPeerEpochInfoCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockfetcherPeerEpochInfoCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockfetcherPeerEpochInfoCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockfetcherPeerMeshHashesCall added in v1.4.0

type MockfetcherPeerMeshHashesCall struct {
	*gomock.Call
}

MockfetcherPeerMeshHashesCall wrap *gomock.Call

func (*MockfetcherPeerMeshHashesCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockfetcherPeerMeshHashesCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockfetcherPeerMeshHashesCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockfetcherRegisterPeerHashesCall added in v1.4.0

type MockfetcherRegisterPeerHashesCall struct {
	*gomock.Call
}

MockfetcherRegisterPeerHashesCall wrap *gomock.Call

func (*MockfetcherRegisterPeerHashesCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockfetcherRegisterPeerHashesCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockfetcherRegisterPeerHashesCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockfetcherSelectBestShuffledCall added in v1.4.0

type MockfetcherSelectBestShuffledCall struct {
	*gomock.Call
}

MockfetcherSelectBestShuffledCall wrap *gomock.Call

func (*MockfetcherSelectBestShuffledCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockfetcherSelectBestShuffledCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockfetcherSelectBestShuffledCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockforkFinder

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

MockforkFinder is a mock of forkFinder interface.

func NewMockforkFinder

func NewMockforkFinder(ctrl *gomock.Controller) *MockforkFinder

NewMockforkFinder creates a new mock instance.

func (*MockforkFinder) AddResynced

func (m *MockforkFinder) AddResynced(arg0 types.LayerID, arg1 types.Hash32)

AddResynced mocks base method.

func (*MockforkFinder) EXPECT

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

func (*MockforkFinder) FindFork

func (m *MockforkFinder) FindFork(arg0 context.Context, arg1 p2p.Peer, arg2 types.LayerID, arg3 types.Hash32) (types.LayerID, error)

FindFork mocks base method.

func (*MockforkFinder) NeedResync

func (m *MockforkFinder) NeedResync(arg0 types.LayerID, arg1 types.Hash32) bool

NeedResync mocks base method.

func (*MockforkFinder) Purge

func (m *MockforkFinder) Purge(arg0 bool, arg1 ...p2p.Peer)

Purge mocks base method.

func (*MockforkFinder) UpdateAgreement

func (m *MockforkFinder) UpdateAgreement(arg0 p2p.Peer, arg1 types.LayerID, arg2 types.Hash32, arg3 time.Time)

UpdateAgreement mocks base method.

type MockforkFinderAddResyncedCall added in v1.4.0

type MockforkFinderAddResyncedCall struct {
	*gomock.Call
}

MockforkFinderAddResyncedCall wrap *gomock.Call

func (*MockforkFinderAddResyncedCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockforkFinderAddResyncedCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockforkFinderAddResyncedCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockforkFinderFindForkCall added in v1.4.0

type MockforkFinderFindForkCall struct {
	*gomock.Call
}

MockforkFinderFindForkCall wrap *gomock.Call

func (*MockforkFinderFindForkCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockforkFinderFindForkCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockforkFinderFindForkCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockforkFinderMockRecorder

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

MockforkFinderMockRecorder is the mock recorder for MockforkFinder.

func (*MockforkFinderMockRecorder) AddResynced

func (mr *MockforkFinderMockRecorder) AddResynced(arg0, arg1 any) *MockforkFinderAddResyncedCall

AddResynced indicates an expected call of AddResynced.

func (*MockforkFinderMockRecorder) FindFork

func (mr *MockforkFinderMockRecorder) FindFork(arg0, arg1, arg2, arg3 any) *MockforkFinderFindForkCall

FindFork indicates an expected call of FindFork.

func (*MockforkFinderMockRecorder) NeedResync

func (mr *MockforkFinderMockRecorder) NeedResync(arg0, arg1 any) *MockforkFinderNeedResyncCall

NeedResync indicates an expected call of NeedResync.

func (*MockforkFinderMockRecorder) Purge

func (mr *MockforkFinderMockRecorder) Purge(arg0 any, arg1 ...any) *MockforkFinderPurgeCall

Purge indicates an expected call of Purge.

func (*MockforkFinderMockRecorder) UpdateAgreement

func (mr *MockforkFinderMockRecorder) UpdateAgreement(arg0, arg1, arg2, arg3 any) *MockforkFinderUpdateAgreementCall

UpdateAgreement indicates an expected call of UpdateAgreement.

type MockforkFinderNeedResyncCall added in v1.4.0

type MockforkFinderNeedResyncCall struct {
	*gomock.Call
}

MockforkFinderNeedResyncCall wrap *gomock.Call

func (*MockforkFinderNeedResyncCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockforkFinderNeedResyncCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockforkFinderNeedResyncCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockforkFinderPurgeCall added in v1.4.0

type MockforkFinderPurgeCall struct {
	*gomock.Call
}

MockforkFinderPurgeCall wrap *gomock.Call

func (*MockforkFinderPurgeCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockforkFinderPurgeCall) DoAndReturn added in v1.4.0

func (c *MockforkFinderPurgeCall) DoAndReturn(f func(bool, ...p2p.Peer)) *MockforkFinderPurgeCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockforkFinderPurgeCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockforkFinderUpdateAgreementCall added in v1.4.0

type MockforkFinderUpdateAgreementCall struct {
	*gomock.Call
}

MockforkFinderUpdateAgreementCall wrap *gomock.Call

func (*MockforkFinderUpdateAgreementCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockforkFinderUpdateAgreementCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockforkFinderUpdateAgreementCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MocklayerPatrol

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

MocklayerPatrol is a mock of layerPatrol interface.

func NewMocklayerPatrol

func NewMocklayerPatrol(ctrl *gomock.Controller) *MocklayerPatrol

NewMocklayerPatrol creates a new mock instance.

func (*MocklayerPatrol) EXPECT

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

func (*MocklayerPatrol) IsHareInCharge

func (m *MocklayerPatrol) IsHareInCharge(arg0 types.LayerID) bool

IsHareInCharge mocks base method.

type MocklayerPatrolIsHareInChargeCall added in v1.4.0

type MocklayerPatrolIsHareInChargeCall struct {
	*gomock.Call
}

MocklayerPatrolIsHareInChargeCall wrap *gomock.Call

func (*MocklayerPatrolIsHareInChargeCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MocklayerPatrolIsHareInChargeCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MocklayerPatrolIsHareInChargeCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MocklayerPatrolMockRecorder

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

MocklayerPatrolMockRecorder is the mock recorder for MocklayerPatrol.

func (*MocklayerPatrolMockRecorder) IsHareInCharge

IsHareInCharge indicates an expected call of IsHareInCharge.

type MocklayerTicker

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

MocklayerTicker is a mock of layerTicker interface.

func NewMocklayerTicker

func NewMocklayerTicker(ctrl *gomock.Controller) *MocklayerTicker

NewMocklayerTicker creates a new mock instance.

func (*MocklayerTicker) CurrentLayer

func (m *MocklayerTicker) CurrentLayer() types.LayerID

CurrentLayer mocks base method.

func (*MocklayerTicker) EXPECT

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

func (*MocklayerTicker) LayerToTime added in v1.4.0

func (m *MocklayerTicker) LayerToTime(arg0 types.LayerID) time.Time

LayerToTime mocks base method.

type MocklayerTickerCurrentLayerCall added in v1.4.0

type MocklayerTickerCurrentLayerCall struct {
	*gomock.Call
}

MocklayerTickerCurrentLayerCall wrap *gomock.Call

func (*MocklayerTickerCurrentLayerCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MocklayerTickerCurrentLayerCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MocklayerTickerCurrentLayerCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MocklayerTickerLayerToTimeCall added in v1.4.0

type MocklayerTickerLayerToTimeCall struct {
	*gomock.Call
}

MocklayerTickerLayerToTimeCall wrap *gomock.Call

func (*MocklayerTickerLayerToTimeCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MocklayerTickerLayerToTimeCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MocklayerTickerLayerToTimeCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MocklayerTickerMockRecorder

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

MocklayerTickerMockRecorder is the mock recorder for MocklayerTicker.

func (*MocklayerTickerMockRecorder) CurrentLayer

CurrentLayer indicates an expected call of CurrentLayer.

func (*MocklayerTickerMockRecorder) LayerToTime added in v1.4.0

LayerToTime indicates an expected call of LayerToTime.

type MockmalSyncer added in v1.4.3

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

MockmalSyncer is a mock of malSyncer interface.

func NewMockmalSyncer added in v1.4.3

func NewMockmalSyncer(ctrl *gomock.Controller) *MockmalSyncer

NewMockmalSyncer creates a new mock instance.

func (*MockmalSyncer) DownloadLoop added in v1.4.3

func (m *MockmalSyncer) DownloadLoop(parent context.Context) error

DownloadLoop mocks base method.

func (*MockmalSyncer) EXPECT added in v1.4.3

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

func (*MockmalSyncer) EnsureInSync added in v1.4.3

func (m *MockmalSyncer) EnsureInSync(parent context.Context, epochStart, epochEnd time.Time) error

EnsureInSync mocks base method.

type MockmalSyncerDownloadLoopCall added in v1.4.3

type MockmalSyncerDownloadLoopCall struct {
	*gomock.Call
}

MockmalSyncerDownloadLoopCall wrap *gomock.Call

func (*MockmalSyncerDownloadLoopCall) Do added in v1.4.3

Do rewrite *gomock.Call.Do

func (*MockmalSyncerDownloadLoopCall) DoAndReturn added in v1.4.3

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockmalSyncerDownloadLoopCall) Return added in v1.4.3

Return rewrite *gomock.Call.Return

type MockmalSyncerEnsureInSyncCall added in v1.4.3

type MockmalSyncerEnsureInSyncCall struct {
	*gomock.Call
}

MockmalSyncerEnsureInSyncCall wrap *gomock.Call

func (*MockmalSyncerEnsureInSyncCall) Do added in v1.4.3

Do rewrite *gomock.Call.Do

func (*MockmalSyncerEnsureInSyncCall) DoAndReturn added in v1.4.3

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockmalSyncerEnsureInSyncCall) Return added in v1.4.3

Return rewrite *gomock.Call.Return

type MockmalSyncerMockRecorder added in v1.4.3

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

MockmalSyncerMockRecorder is the mock recorder for MockmalSyncer.

func (*MockmalSyncerMockRecorder) DownloadLoop added in v1.4.3

DownloadLoop indicates an expected call of DownloadLoop.

func (*MockmalSyncerMockRecorder) EnsureInSync added in v1.4.3

func (mr *MockmalSyncerMockRecorder) EnsureInSync(parent, epochStart, epochEnd any) *MockmalSyncerEnsureInSyncCall

EnsureInSync indicates an expected call of EnsureInSync.

type MockmeshProvider

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

MockmeshProvider is a mock of meshProvider interface.

func NewMockmeshProvider

func NewMockmeshProvider(ctrl *gomock.Controller) *MockmeshProvider

NewMockmeshProvider creates a new mock instance.

func (*MockmeshProvider) EXPECT

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

func (*MockmeshProvider) SetZeroBlockLayer

func (m *MockmeshProvider) SetZeroBlockLayer(arg0 context.Context, arg1 types.LayerID)

SetZeroBlockLayer mocks base method.

type MockmeshProviderMockRecorder

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

MockmeshProviderMockRecorder is the mock recorder for MockmeshProvider.

func (*MockmeshProviderMockRecorder) SetZeroBlockLayer

func (mr *MockmeshProviderMockRecorder) SetZeroBlockLayer(arg0, arg1 any) *MockmeshProviderSetZeroBlockLayerCall

SetZeroBlockLayer indicates an expected call of SetZeroBlockLayer.

type MockmeshProviderSetZeroBlockLayerCall added in v1.4.0

type MockmeshProviderSetZeroBlockLayerCall struct {
	*gomock.Call
}

MockmeshProviderSetZeroBlockLayerCall wrap *gomock.Call

func (*MockmeshProviderSetZeroBlockLayerCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockmeshProviderSetZeroBlockLayerCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockmeshProviderSetZeroBlockLayerCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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