Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockatxSyncer
- type MockatxSyncerDownloadCall
- func (c *MockatxSyncerDownloadCall) Do(f func(context.Context, types.EpochID, time.Time) error) *MockatxSyncerDownloadCall
- func (c *MockatxSyncerDownloadCall) DoAndReturn(f func(context.Context, types.EpochID, time.Time) error) *MockatxSyncerDownloadCall
- func (c *MockatxSyncerDownloadCall) Return(arg0 error) *MockatxSyncerDownloadCall
- type MockatxSyncerMockRecorder
- type MockcertHandler
- type MockcertHandlerHandleSyncedCertificateCall
- func (c *MockcertHandlerHandleSyncedCertificateCall) Do(f func(context.Context, types.LayerID, *types.Certificate) error) *MockcertHandlerHandleSyncedCertificateCall
- func (c *MockcertHandlerHandleSyncedCertificateCall) DoAndReturn(f func(context.Context, types.LayerID, *types.Certificate) error) *MockcertHandlerHandleSyncedCertificateCall
- func (c *MockcertHandlerHandleSyncedCertificateCall) Return(arg0 error) *MockcertHandlerHandleSyncedCertificateCall
- type MockcertHandlerMockRecorder
- type MockfetchLogic
- func (m *MockfetchLogic) EXPECT() *MockfetchLogicMockRecorder
- func (m *MockfetchLogic) GetAtxs(arg0 context.Context, arg1 []types.ATXID, arg2 ...system.GetAtxOpt) error
- func (m *MockfetchLogic) GetBallots(arg0 context.Context, arg1 []types.BallotID) error
- func (m *MockfetchLogic) GetBlocks(arg0 context.Context, arg1 []types.BlockID) error
- func (m *MockfetchLogic) GetCert(arg0 context.Context, arg1 types.LayerID, arg2 types.BlockID, arg3 []p2p.Peer) (*types.Certificate, error)
- func (m *MockfetchLogic) GetLayerData(arg0 context.Context, arg1 p2p.Peer, arg2 types.LayerID) ([]byte, error)
- func (m *MockfetchLogic) GetLayerOpinions(arg0 context.Context, arg1 p2p.Peer, arg2 types.LayerID) ([]byte, error)
- func (m *MockfetchLogic) GetMalfeasanceProofs(arg0 context.Context, arg1 []types.NodeID) error
- func (m *MockfetchLogic) GetMaliciousIDs(arg0 context.Context, arg1 p2p.Peer) ([]types.NodeID, error)
- func (m *MockfetchLogic) PeerEpochInfo(arg0 context.Context, arg1 p2p.Peer, arg2 types.EpochID) (*fetch.EpochData, error)
- func (m *MockfetchLogic) PeerMeshHashes(arg0 context.Context, arg1 p2p.Peer, arg2 *fetch.MeshHashRequest) (*fetch.MeshHashes, error)
- func (m *MockfetchLogic) PollLayerData(arg0 context.Context, arg1 types.LayerID, arg2 ...p2p.Peer) error
- func (m *MockfetchLogic) PollLayerOpinions(arg0 context.Context, arg1 types.LayerID, arg2 bool, arg3 []p2p.Peer) ([]*fetch.LayerOpinion, []*types.Certificate, error)
- func (m *MockfetchLogic) RegisterPeerHashes(peer p2p.Peer, hashes []types.Hash32)
- func (m *MockfetchLogic) SelectBestShuffled(arg0 int) []p2p.Peer
- type MockfetchLogicGetAtxsCall
- func (c *MockfetchLogicGetAtxsCall) Do(f func(context.Context, []types.ATXID, ...system.GetAtxOpt) error) *MockfetchLogicGetAtxsCall
- func (c *MockfetchLogicGetAtxsCall) DoAndReturn(f func(context.Context, []types.ATXID, ...system.GetAtxOpt) error) *MockfetchLogicGetAtxsCall
- func (c *MockfetchLogicGetAtxsCall) Return(arg0 error) *MockfetchLogicGetAtxsCall
- type MockfetchLogicGetBallotsCall
- func (c *MockfetchLogicGetBallotsCall) Do(f func(context.Context, []types.BallotID) error) *MockfetchLogicGetBallotsCall
- func (c *MockfetchLogicGetBallotsCall) DoAndReturn(f func(context.Context, []types.BallotID) error) *MockfetchLogicGetBallotsCall
- func (c *MockfetchLogicGetBallotsCall) Return(arg0 error) *MockfetchLogicGetBallotsCall
- type MockfetchLogicGetBlocksCall
- func (c *MockfetchLogicGetBlocksCall) Do(f func(context.Context, []types.BlockID) error) *MockfetchLogicGetBlocksCall
- func (c *MockfetchLogicGetBlocksCall) DoAndReturn(f func(context.Context, []types.BlockID) error) *MockfetchLogicGetBlocksCall
- func (c *MockfetchLogicGetBlocksCall) Return(arg0 error) *MockfetchLogicGetBlocksCall
- type MockfetchLogicGetCertCall
- type MockfetchLogicGetLayerDataCall
- func (c *MockfetchLogicGetLayerDataCall) Do(f func(context.Context, p2p.Peer, types.LayerID) ([]byte, error)) *MockfetchLogicGetLayerDataCall
- func (c *MockfetchLogicGetLayerDataCall) DoAndReturn(f func(context.Context, p2p.Peer, types.LayerID) ([]byte, error)) *MockfetchLogicGetLayerDataCall
- func (c *MockfetchLogicGetLayerDataCall) Return(arg0 []byte, arg1 error) *MockfetchLogicGetLayerDataCall
- type MockfetchLogicGetLayerOpinionsCall
- func (c *MockfetchLogicGetLayerOpinionsCall) Do(f func(context.Context, p2p.Peer, types.LayerID) ([]byte, error)) *MockfetchLogicGetLayerOpinionsCall
- func (c *MockfetchLogicGetLayerOpinionsCall) DoAndReturn(f func(context.Context, p2p.Peer, types.LayerID) ([]byte, error)) *MockfetchLogicGetLayerOpinionsCall
- func (c *MockfetchLogicGetLayerOpinionsCall) Return(arg0 []byte, arg1 error) *MockfetchLogicGetLayerOpinionsCall
- type MockfetchLogicGetMalfeasanceProofsCall
- func (c *MockfetchLogicGetMalfeasanceProofsCall) Do(f func(context.Context, []types.NodeID) error) *MockfetchLogicGetMalfeasanceProofsCall
- func (c *MockfetchLogicGetMalfeasanceProofsCall) DoAndReturn(f func(context.Context, []types.NodeID) error) *MockfetchLogicGetMalfeasanceProofsCall
- func (c *MockfetchLogicGetMalfeasanceProofsCall) Return(arg0 error) *MockfetchLogicGetMalfeasanceProofsCall
- type MockfetchLogicGetMaliciousIDsCall
- func (c *MockfetchLogicGetMaliciousIDsCall) Do(f func(context.Context, p2p.Peer) ([]types.NodeID, error)) *MockfetchLogicGetMaliciousIDsCall
- func (c *MockfetchLogicGetMaliciousIDsCall) DoAndReturn(f func(context.Context, p2p.Peer) ([]types.NodeID, error)) *MockfetchLogicGetMaliciousIDsCall
- func (c *MockfetchLogicGetMaliciousIDsCall) Return(arg0 []types.NodeID, arg1 error) *MockfetchLogicGetMaliciousIDsCall
- type MockfetchLogicMockRecorder
- func (mr *MockfetchLogicMockRecorder) GetAtxs(arg0, arg1 any, arg2 ...any) *MockfetchLogicGetAtxsCall
- func (mr *MockfetchLogicMockRecorder) GetBallots(arg0, arg1 any) *MockfetchLogicGetBallotsCall
- func (mr *MockfetchLogicMockRecorder) GetBlocks(arg0, arg1 any) *MockfetchLogicGetBlocksCall
- func (mr *MockfetchLogicMockRecorder) GetCert(arg0, arg1, arg2, arg3 any) *MockfetchLogicGetCertCall
- func (mr *MockfetchLogicMockRecorder) GetLayerData(arg0, arg1, arg2 any) *MockfetchLogicGetLayerDataCall
- func (mr *MockfetchLogicMockRecorder) GetLayerOpinions(arg0, arg1, arg2 any) *MockfetchLogicGetLayerOpinionsCall
- func (mr *MockfetchLogicMockRecorder) GetMalfeasanceProofs(arg0, arg1 any) *MockfetchLogicGetMalfeasanceProofsCall
- func (mr *MockfetchLogicMockRecorder) GetMaliciousIDs(arg0, arg1 any) *MockfetchLogicGetMaliciousIDsCall
- func (mr *MockfetchLogicMockRecorder) PeerEpochInfo(arg0, arg1, arg2 any) *MockfetchLogicPeerEpochInfoCall
- func (mr *MockfetchLogicMockRecorder) PeerMeshHashes(arg0, arg1, arg2 any) *MockfetchLogicPeerMeshHashesCall
- func (mr *MockfetchLogicMockRecorder) PollLayerData(arg0, arg1 any, arg2 ...any) *MockfetchLogicPollLayerDataCall
- func (mr *MockfetchLogicMockRecorder) PollLayerOpinions(arg0, arg1, arg2, arg3 any) *MockfetchLogicPollLayerOpinionsCall
- func (mr *MockfetchLogicMockRecorder) RegisterPeerHashes(peer, hashes any) *MockfetchLogicRegisterPeerHashesCall
- func (mr *MockfetchLogicMockRecorder) SelectBestShuffled(arg0 any) *MockfetchLogicSelectBestShuffledCall
- type MockfetchLogicPeerEpochInfoCall
- func (c *MockfetchLogicPeerEpochInfoCall) Do(f func(context.Context, p2p.Peer, types.EpochID) (*fetch.EpochData, error)) *MockfetchLogicPeerEpochInfoCall
- func (c *MockfetchLogicPeerEpochInfoCall) DoAndReturn(f func(context.Context, p2p.Peer, types.EpochID) (*fetch.EpochData, error)) *MockfetchLogicPeerEpochInfoCall
- func (c *MockfetchLogicPeerEpochInfoCall) Return(arg0 *fetch.EpochData, arg1 error) *MockfetchLogicPeerEpochInfoCall
- type MockfetchLogicPeerMeshHashesCall
- type MockfetchLogicPollLayerDataCall
- func (c *MockfetchLogicPollLayerDataCall) Do(f func(context.Context, types.LayerID, ...p2p.Peer) error) *MockfetchLogicPollLayerDataCall
- func (c *MockfetchLogicPollLayerDataCall) DoAndReturn(f func(context.Context, types.LayerID, ...p2p.Peer) error) *MockfetchLogicPollLayerDataCall
- func (c *MockfetchLogicPollLayerDataCall) Return(arg0 error) *MockfetchLogicPollLayerDataCall
- type MockfetchLogicPollLayerOpinionsCall
- func (c *MockfetchLogicPollLayerOpinionsCall) Do(...) *MockfetchLogicPollLayerOpinionsCall
- func (c *MockfetchLogicPollLayerOpinionsCall) DoAndReturn(...) *MockfetchLogicPollLayerOpinionsCall
- func (c *MockfetchLogicPollLayerOpinionsCall) Return(arg0 []*fetch.LayerOpinion, arg1 []*types.Certificate, arg2 error) *MockfetchLogicPollLayerOpinionsCall
- type MockfetchLogicRegisterPeerHashesCall
- func (c *MockfetchLogicRegisterPeerHashesCall) Do(f func(p2p.Peer, []types.Hash32)) *MockfetchLogicRegisterPeerHashesCall
- func (c *MockfetchLogicRegisterPeerHashesCall) DoAndReturn(f func(p2p.Peer, []types.Hash32)) *MockfetchLogicRegisterPeerHashesCall
- func (c *MockfetchLogicRegisterPeerHashesCall) Return() *MockfetchLogicRegisterPeerHashesCall
- type MockfetchLogicSelectBestShuffledCall
- func (c *MockfetchLogicSelectBestShuffledCall) Do(f func(int) []p2p.Peer) *MockfetchLogicSelectBestShuffledCall
- func (c *MockfetchLogicSelectBestShuffledCall) DoAndReturn(f func(int) []p2p.Peer) *MockfetchLogicSelectBestShuffledCall
- func (c *MockfetchLogicSelectBestShuffledCall) Return(arg0 []p2p.Peer) *MockfetchLogicSelectBestShuffledCall
- type Mockfetcher
- func (m *Mockfetcher) EXPECT() *MockfetcherMockRecorder
- func (m *Mockfetcher) GetAtxs(arg0 context.Context, arg1 []types.ATXID, arg2 ...system.GetAtxOpt) error
- func (m *Mockfetcher) GetBallots(arg0 context.Context, arg1 []types.BallotID) error
- func (m *Mockfetcher) GetBlocks(arg0 context.Context, arg1 []types.BlockID) error
- func (m *Mockfetcher) GetCert(arg0 context.Context, arg1 types.LayerID, arg2 types.BlockID, arg3 []p2p.Peer) (*types.Certificate, error)
- func (m *Mockfetcher) GetLayerData(arg0 context.Context, arg1 p2p.Peer, arg2 types.LayerID) ([]byte, error)
- func (m *Mockfetcher) GetLayerOpinions(arg0 context.Context, arg1 p2p.Peer, arg2 types.LayerID) ([]byte, error)
- func (m *Mockfetcher) GetMalfeasanceProofs(arg0 context.Context, arg1 []types.NodeID) error
- func (m *Mockfetcher) GetMaliciousIDs(arg0 context.Context, arg1 p2p.Peer) ([]types.NodeID, error)
- func (m *Mockfetcher) PeerEpochInfo(arg0 context.Context, arg1 p2p.Peer, arg2 types.EpochID) (*fetch.EpochData, error)
- func (m *Mockfetcher) PeerMeshHashes(arg0 context.Context, arg1 p2p.Peer, arg2 *fetch.MeshHashRequest) (*fetch.MeshHashes, error)
- func (m *Mockfetcher) RegisterPeerHashes(peer p2p.Peer, hashes []types.Hash32)
- func (m *Mockfetcher) SelectBestShuffled(arg0 int) []p2p.Peer
- type MockfetcherGetAtxsCall
- func (c *MockfetcherGetAtxsCall) Do(f func(context.Context, []types.ATXID, ...system.GetAtxOpt) error) *MockfetcherGetAtxsCall
- func (c *MockfetcherGetAtxsCall) DoAndReturn(f func(context.Context, []types.ATXID, ...system.GetAtxOpt) error) *MockfetcherGetAtxsCall
- func (c *MockfetcherGetAtxsCall) Return(arg0 error) *MockfetcherGetAtxsCall
- type MockfetcherGetBallotsCall
- func (c *MockfetcherGetBallotsCall) Do(f func(context.Context, []types.BallotID) error) *MockfetcherGetBallotsCall
- func (c *MockfetcherGetBallotsCall) DoAndReturn(f func(context.Context, []types.BallotID) error) *MockfetcherGetBallotsCall
- func (c *MockfetcherGetBallotsCall) Return(arg0 error) *MockfetcherGetBallotsCall
- type MockfetcherGetBlocksCall
- func (c *MockfetcherGetBlocksCall) Do(f func(context.Context, []types.BlockID) error) *MockfetcherGetBlocksCall
- func (c *MockfetcherGetBlocksCall) DoAndReturn(f func(context.Context, []types.BlockID) error) *MockfetcherGetBlocksCall
- func (c *MockfetcherGetBlocksCall) Return(arg0 error) *MockfetcherGetBlocksCall
- type MockfetcherGetCertCall
- type MockfetcherGetLayerDataCall
- func (c *MockfetcherGetLayerDataCall) Do(f func(context.Context, p2p.Peer, types.LayerID) ([]byte, error)) *MockfetcherGetLayerDataCall
- func (c *MockfetcherGetLayerDataCall) DoAndReturn(f func(context.Context, p2p.Peer, types.LayerID) ([]byte, error)) *MockfetcherGetLayerDataCall
- func (c *MockfetcherGetLayerDataCall) Return(arg0 []byte, arg1 error) *MockfetcherGetLayerDataCall
- type MockfetcherGetLayerOpinionsCall
- func (c *MockfetcherGetLayerOpinionsCall) Do(f func(context.Context, p2p.Peer, types.LayerID) ([]byte, error)) *MockfetcherGetLayerOpinionsCall
- func (c *MockfetcherGetLayerOpinionsCall) DoAndReturn(f func(context.Context, p2p.Peer, types.LayerID) ([]byte, error)) *MockfetcherGetLayerOpinionsCall
- func (c *MockfetcherGetLayerOpinionsCall) Return(arg0 []byte, arg1 error) *MockfetcherGetLayerOpinionsCall
- type MockfetcherGetMalfeasanceProofsCall
- func (c *MockfetcherGetMalfeasanceProofsCall) Do(f func(context.Context, []types.NodeID) error) *MockfetcherGetMalfeasanceProofsCall
- func (c *MockfetcherGetMalfeasanceProofsCall) DoAndReturn(f func(context.Context, []types.NodeID) error) *MockfetcherGetMalfeasanceProofsCall
- func (c *MockfetcherGetMalfeasanceProofsCall) Return(arg0 error) *MockfetcherGetMalfeasanceProofsCall
- type MockfetcherGetMaliciousIDsCall
- func (c *MockfetcherGetMaliciousIDsCall) Do(f func(context.Context, p2p.Peer) ([]types.NodeID, error)) *MockfetcherGetMaliciousIDsCall
- func (c *MockfetcherGetMaliciousIDsCall) DoAndReturn(f func(context.Context, p2p.Peer) ([]types.NodeID, error)) *MockfetcherGetMaliciousIDsCall
- func (c *MockfetcherGetMaliciousIDsCall) Return(arg0 []types.NodeID, arg1 error) *MockfetcherGetMaliciousIDsCall
- type MockfetcherMockRecorder
- func (mr *MockfetcherMockRecorder) GetAtxs(arg0, arg1 any, arg2 ...any) *MockfetcherGetAtxsCall
- func (mr *MockfetcherMockRecorder) GetBallots(arg0, arg1 any) *MockfetcherGetBallotsCall
- func (mr *MockfetcherMockRecorder) GetBlocks(arg0, arg1 any) *MockfetcherGetBlocksCall
- func (mr *MockfetcherMockRecorder) GetCert(arg0, arg1, arg2, arg3 any) *MockfetcherGetCertCall
- func (mr *MockfetcherMockRecorder) GetLayerData(arg0, arg1, arg2 any) *MockfetcherGetLayerDataCall
- func (mr *MockfetcherMockRecorder) GetLayerOpinions(arg0, arg1, arg2 any) *MockfetcherGetLayerOpinionsCall
- func (mr *MockfetcherMockRecorder) GetMalfeasanceProofs(arg0, arg1 any) *MockfetcherGetMalfeasanceProofsCall
- func (mr *MockfetcherMockRecorder) GetMaliciousIDs(arg0, arg1 any) *MockfetcherGetMaliciousIDsCall
- func (mr *MockfetcherMockRecorder) PeerEpochInfo(arg0, arg1, arg2 any) *MockfetcherPeerEpochInfoCall
- func (mr *MockfetcherMockRecorder) PeerMeshHashes(arg0, arg1, arg2 any) *MockfetcherPeerMeshHashesCall
- func (mr *MockfetcherMockRecorder) RegisterPeerHashes(peer, hashes any) *MockfetcherRegisterPeerHashesCall
- func (mr *MockfetcherMockRecorder) SelectBestShuffled(arg0 any) *MockfetcherSelectBestShuffledCall
- type MockfetcherPeerEpochInfoCall
- func (c *MockfetcherPeerEpochInfoCall) Do(f func(context.Context, p2p.Peer, types.EpochID) (*fetch.EpochData, error)) *MockfetcherPeerEpochInfoCall
- func (c *MockfetcherPeerEpochInfoCall) DoAndReturn(f func(context.Context, p2p.Peer, types.EpochID) (*fetch.EpochData, error)) *MockfetcherPeerEpochInfoCall
- func (c *MockfetcherPeerEpochInfoCall) Return(arg0 *fetch.EpochData, arg1 error) *MockfetcherPeerEpochInfoCall
- type MockfetcherPeerMeshHashesCall
- type MockfetcherRegisterPeerHashesCall
- func (c *MockfetcherRegisterPeerHashesCall) Do(f func(p2p.Peer, []types.Hash32)) *MockfetcherRegisterPeerHashesCall
- func (c *MockfetcherRegisterPeerHashesCall) DoAndReturn(f func(p2p.Peer, []types.Hash32)) *MockfetcherRegisterPeerHashesCall
- func (c *MockfetcherRegisterPeerHashesCall) Return() *MockfetcherRegisterPeerHashesCall
- type MockfetcherSelectBestShuffledCall
- func (c *MockfetcherSelectBestShuffledCall) Do(f func(int) []p2p.Peer) *MockfetcherSelectBestShuffledCall
- func (c *MockfetcherSelectBestShuffledCall) DoAndReturn(f func(int) []p2p.Peer) *MockfetcherSelectBestShuffledCall
- func (c *MockfetcherSelectBestShuffledCall) Return(arg0 []p2p.Peer) *MockfetcherSelectBestShuffledCall
- type MockforkFinder
- func (m *MockforkFinder) AddResynced(arg0 types.LayerID, arg1 types.Hash32)
- func (m *MockforkFinder) EXPECT() *MockforkFinderMockRecorder
- func (m *MockforkFinder) FindFork(arg0 context.Context, arg1 p2p.Peer, arg2 types.LayerID, arg3 types.Hash32) (types.LayerID, error)
- func (m *MockforkFinder) NeedResync(arg0 types.LayerID, arg1 types.Hash32) bool
- func (m *MockforkFinder) Purge(arg0 bool, arg1 ...p2p.Peer)
- func (m *MockforkFinder) UpdateAgreement(arg0 p2p.Peer, arg1 types.LayerID, arg2 types.Hash32, arg3 time.Time)
- type MockforkFinderAddResyncedCall
- func (c *MockforkFinderAddResyncedCall) Do(f func(types.LayerID, types.Hash32)) *MockforkFinderAddResyncedCall
- func (c *MockforkFinderAddResyncedCall) DoAndReturn(f func(types.LayerID, types.Hash32)) *MockforkFinderAddResyncedCall
- func (c *MockforkFinderAddResyncedCall) Return() *MockforkFinderAddResyncedCall
- type MockforkFinderFindForkCall
- type MockforkFinderMockRecorder
- func (mr *MockforkFinderMockRecorder) AddResynced(arg0, arg1 any) *MockforkFinderAddResyncedCall
- func (mr *MockforkFinderMockRecorder) FindFork(arg0, arg1, arg2, arg3 any) *MockforkFinderFindForkCall
- func (mr *MockforkFinderMockRecorder) NeedResync(arg0, arg1 any) *MockforkFinderNeedResyncCall
- func (mr *MockforkFinderMockRecorder) Purge(arg0 any, arg1 ...any) *MockforkFinderPurgeCall
- func (mr *MockforkFinderMockRecorder) UpdateAgreement(arg0, arg1, arg2, arg3 any) *MockforkFinderUpdateAgreementCall
- type MockforkFinderNeedResyncCall
- func (c *MockforkFinderNeedResyncCall) Do(f func(types.LayerID, types.Hash32) bool) *MockforkFinderNeedResyncCall
- func (c *MockforkFinderNeedResyncCall) DoAndReturn(f func(types.LayerID, types.Hash32) bool) *MockforkFinderNeedResyncCall
- func (c *MockforkFinderNeedResyncCall) Return(arg0 bool) *MockforkFinderNeedResyncCall
- type MockforkFinderPurgeCall
- type MockforkFinderUpdateAgreementCall
- func (c *MockforkFinderUpdateAgreementCall) Do(f func(p2p.Peer, types.LayerID, types.Hash32, time.Time)) *MockforkFinderUpdateAgreementCall
- func (c *MockforkFinderUpdateAgreementCall) DoAndReturn(f func(p2p.Peer, types.LayerID, types.Hash32, time.Time)) *MockforkFinderUpdateAgreementCall
- func (c *MockforkFinderUpdateAgreementCall) Return() *MockforkFinderUpdateAgreementCall
- type MockidProvider
- type MockidProviderIdentityExistsCall
- func (c *MockidProviderIdentityExistsCall) Do(f func(types.NodeID) (bool, error)) *MockidProviderIdentityExistsCall
- func (c *MockidProviderIdentityExistsCall) DoAndReturn(f func(types.NodeID) (bool, error)) *MockidProviderIdentityExistsCall
- func (c *MockidProviderIdentityExistsCall) Return(arg0 bool, arg1 error) *MockidProviderIdentityExistsCall
- type MockidProviderMockRecorder
- type MocklayerPatrol
- type MocklayerPatrolIsHareInChargeCall
- func (c *MocklayerPatrolIsHareInChargeCall) Do(f func(types.LayerID) bool) *MocklayerPatrolIsHareInChargeCall
- func (c *MocklayerPatrolIsHareInChargeCall) DoAndReturn(f func(types.LayerID) bool) *MocklayerPatrolIsHareInChargeCall
- func (c *MocklayerPatrolIsHareInChargeCall) Return(arg0 bool) *MocklayerPatrolIsHareInChargeCall
- type MocklayerPatrolMockRecorder
- type MocklayerTicker
- type MocklayerTickerCurrentLayerCall
- func (c *MocklayerTickerCurrentLayerCall) Do(f func() types.LayerID) *MocklayerTickerCurrentLayerCall
- func (c *MocklayerTickerCurrentLayerCall) DoAndReturn(f func() types.LayerID) *MocklayerTickerCurrentLayerCall
- func (c *MocklayerTickerCurrentLayerCall) Return(arg0 types.LayerID) *MocklayerTickerCurrentLayerCall
- type MocklayerTickerLayerToTimeCall
- func (c *MocklayerTickerLayerToTimeCall) Do(f func(types.LayerID) time.Time) *MocklayerTickerLayerToTimeCall
- func (c *MocklayerTickerLayerToTimeCall) DoAndReturn(f func(types.LayerID) time.Time) *MocklayerTickerLayerToTimeCall
- func (c *MocklayerTickerLayerToTimeCall) Return(arg0 time.Time) *MocklayerTickerLayerToTimeCall
- type MocklayerTickerMockRecorder
- type MockmalSyncer
- type MockmalSyncerDownloadLoopCall
- func (c *MockmalSyncerDownloadLoopCall) Do(f func(context.Context) error) *MockmalSyncerDownloadLoopCall
- func (c *MockmalSyncerDownloadLoopCall) DoAndReturn(f func(context.Context) error) *MockmalSyncerDownloadLoopCall
- func (c *MockmalSyncerDownloadLoopCall) Return(arg0 error) *MockmalSyncerDownloadLoopCall
- type MockmalSyncerEnsureInSyncCall
- func (c *MockmalSyncerEnsureInSyncCall) Do(f func(context.Context, time.Time, time.Time) error) *MockmalSyncerEnsureInSyncCall
- func (c *MockmalSyncerEnsureInSyncCall) DoAndReturn(f func(context.Context, time.Time, time.Time) error) *MockmalSyncerEnsureInSyncCall
- func (c *MockmalSyncerEnsureInSyncCall) Return(arg0 error) *MockmalSyncerEnsureInSyncCall
- type MockmalSyncerMockRecorder
- type MockmeshProvider
- type MockmeshProviderMockRecorder
- type MockmeshProviderSetZeroBlockLayerCall
- func (c *MockmeshProviderSetZeroBlockLayerCall) Do(f func(context.Context, types.LayerID)) *MockmeshProviderSetZeroBlockLayerCall
- func (c *MockmeshProviderSetZeroBlockLayerCall) DoAndReturn(f func(context.Context, types.LayerID)) *MockmeshProviderSetZeroBlockLayerCall
- func (c *MockmeshProviderSetZeroBlockLayerCall) Return() *MockmeshProviderSetZeroBlockLayerCall
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) EXPECT ¶ added in v1.4.0
func (m *MockatxSyncer) EXPECT() *MockatxSyncerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockatxSyncerDownloadCall ¶ added in v1.4.0
MockatxSyncerDownloadCall wrap *gomock.Call
func (*MockatxSyncerDownloadCall) Do ¶ added in v1.4.0
func (c *MockatxSyncerDownloadCall) Do(f func(context.Context, types.EpochID, time.Time) error) *MockatxSyncerDownloadCall
Do rewrite *gomock.Call.Do
func (*MockatxSyncerDownloadCall) DoAndReturn ¶ added in v1.4.0
func (c *MockatxSyncerDownloadCall) DoAndReturn(f func(context.Context, types.EpochID, time.Time) error) *MockatxSyncerDownloadCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockatxSyncerDownloadCall) Return ¶ added in v1.4.0
func (c *MockatxSyncerDownloadCall) Return(arg0 error) *MockatxSyncerDownloadCall
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 ¶
func (m *MockcertHandler) EXPECT() *MockcertHandlerMockRecorder
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
MockcertHandlerHandleSyncedCertificateCall wrap *gomock.Call
func (*MockcertHandlerHandleSyncedCertificateCall) Do ¶ added in v1.4.0
func (c *MockcertHandlerHandleSyncedCertificateCall) Do(f func(context.Context, types.LayerID, *types.Certificate) error) *MockcertHandlerHandleSyncedCertificateCall
Do rewrite *gomock.Call.Do
func (*MockcertHandlerHandleSyncedCertificateCall) DoAndReturn ¶ added in v1.4.0
func (c *MockcertHandlerHandleSyncedCertificateCall) DoAndReturn(f func(context.Context, types.LayerID, *types.Certificate) error) *MockcertHandlerHandleSyncedCertificateCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockcertHandlerHandleSyncedCertificateCall) Return ¶ added in v1.4.0
func (c *MockcertHandlerHandleSyncedCertificateCall) Return(arg0 error) *MockcertHandlerHandleSyncedCertificateCall
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 ¶
func (m *MockfetchLogic) EXPECT() *MockfetchLogicMockRecorder
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 ¶
GetBallots 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 ¶
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
MockfetchLogicGetAtxsCall wrap *gomock.Call
func (*MockfetchLogicGetAtxsCall) Do ¶ added in v1.4.0
func (c *MockfetchLogicGetAtxsCall) Do(f func(context.Context, []types.ATXID, ...system.GetAtxOpt) error) *MockfetchLogicGetAtxsCall
Do rewrite *gomock.Call.Do
func (*MockfetchLogicGetAtxsCall) DoAndReturn ¶ added in v1.4.0
func (c *MockfetchLogicGetAtxsCall) DoAndReturn(f func(context.Context, []types.ATXID, ...system.GetAtxOpt) error) *MockfetchLogicGetAtxsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockfetchLogicGetAtxsCall) Return ¶ added in v1.4.0
func (c *MockfetchLogicGetAtxsCall) Return(arg0 error) *MockfetchLogicGetAtxsCall
Return rewrite *gomock.Call.Return
type MockfetchLogicGetBallotsCall ¶ added in v1.4.0
MockfetchLogicGetBallotsCall wrap *gomock.Call
func (*MockfetchLogicGetBallotsCall) Do ¶ added in v1.4.0
func (c *MockfetchLogicGetBallotsCall) Do(f func(context.Context, []types.BallotID) error) *MockfetchLogicGetBallotsCall
Do rewrite *gomock.Call.Do
func (*MockfetchLogicGetBallotsCall) DoAndReturn ¶ added in v1.4.0
func (c *MockfetchLogicGetBallotsCall) DoAndReturn(f func(context.Context, []types.BallotID) error) *MockfetchLogicGetBallotsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockfetchLogicGetBallotsCall) Return ¶ added in v1.4.0
func (c *MockfetchLogicGetBallotsCall) Return(arg0 error) *MockfetchLogicGetBallotsCall
Return rewrite *gomock.Call.Return
type MockfetchLogicGetBlocksCall ¶ added in v1.4.0
MockfetchLogicGetBlocksCall wrap *gomock.Call
func (*MockfetchLogicGetBlocksCall) Do ¶ added in v1.4.0
func (c *MockfetchLogicGetBlocksCall) Do(f func(context.Context, []types.BlockID) error) *MockfetchLogicGetBlocksCall
Do rewrite *gomock.Call.Do
func (*MockfetchLogicGetBlocksCall) DoAndReturn ¶ added in v1.4.0
func (c *MockfetchLogicGetBlocksCall) DoAndReturn(f func(context.Context, []types.BlockID) error) *MockfetchLogicGetBlocksCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockfetchLogicGetBlocksCall) Return ¶ added in v1.4.0
func (c *MockfetchLogicGetBlocksCall) Return(arg0 error) *MockfetchLogicGetBlocksCall
Return rewrite *gomock.Call.Return
type MockfetchLogicGetCertCall ¶ added in v1.4.0
MockfetchLogicGetCertCall wrap *gomock.Call
func (*MockfetchLogicGetCertCall) Do ¶ added in v1.4.0
func (c *MockfetchLogicGetCertCall) Do(f func(context.Context, types.LayerID, types.BlockID, []p2p.Peer) (*types.Certificate, error)) *MockfetchLogicGetCertCall
Do rewrite *gomock.Call.Do
func (*MockfetchLogicGetCertCall) DoAndReturn ¶ added in v1.4.0
func (c *MockfetchLogicGetCertCall) DoAndReturn(f func(context.Context, types.LayerID, types.BlockID, []p2p.Peer) (*types.Certificate, error)) *MockfetchLogicGetCertCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockfetchLogicGetCertCall) Return ¶ added in v1.4.0
func (c *MockfetchLogicGetCertCall) Return(arg0 *types.Certificate, arg1 error) *MockfetchLogicGetCertCall
Return rewrite *gomock.Call.Return
type MockfetchLogicGetLayerDataCall ¶ added in v1.4.0
MockfetchLogicGetLayerDataCall wrap *gomock.Call
func (*MockfetchLogicGetLayerDataCall) Do ¶ added in v1.4.0
func (c *MockfetchLogicGetLayerDataCall) Do(f func(context.Context, p2p.Peer, types.LayerID) ([]byte, error)) *MockfetchLogicGetLayerDataCall
Do rewrite *gomock.Call.Do
func (*MockfetchLogicGetLayerDataCall) DoAndReturn ¶ added in v1.4.0
func (c *MockfetchLogicGetLayerDataCall) DoAndReturn(f func(context.Context, p2p.Peer, types.LayerID) ([]byte, error)) *MockfetchLogicGetLayerDataCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockfetchLogicGetLayerDataCall) Return ¶ added in v1.4.0
func (c *MockfetchLogicGetLayerDataCall) Return(arg0 []byte, arg1 error) *MockfetchLogicGetLayerDataCall
Return rewrite *gomock.Call.Return
type MockfetchLogicGetLayerOpinionsCall ¶ added in v1.4.0
MockfetchLogicGetLayerOpinionsCall wrap *gomock.Call
func (*MockfetchLogicGetLayerOpinionsCall) Do ¶ added in v1.4.0
func (c *MockfetchLogicGetLayerOpinionsCall) Do(f func(context.Context, p2p.Peer, types.LayerID) ([]byte, error)) *MockfetchLogicGetLayerOpinionsCall
Do rewrite *gomock.Call.Do
func (*MockfetchLogicGetLayerOpinionsCall) DoAndReturn ¶ added in v1.4.0
func (c *MockfetchLogicGetLayerOpinionsCall) DoAndReturn(f func(context.Context, p2p.Peer, types.LayerID) ([]byte, error)) *MockfetchLogicGetLayerOpinionsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockfetchLogicGetLayerOpinionsCall) Return ¶ added in v1.4.0
func (c *MockfetchLogicGetLayerOpinionsCall) Return(arg0 []byte, arg1 error) *MockfetchLogicGetLayerOpinionsCall
Return rewrite *gomock.Call.Return
type MockfetchLogicGetMalfeasanceProofsCall ¶ added in v1.4.0
MockfetchLogicGetMalfeasanceProofsCall wrap *gomock.Call
func (*MockfetchLogicGetMalfeasanceProofsCall) Do ¶ added in v1.4.0
func (c *MockfetchLogicGetMalfeasanceProofsCall) Do(f func(context.Context, []types.NodeID) error) *MockfetchLogicGetMalfeasanceProofsCall
Do rewrite *gomock.Call.Do
func (*MockfetchLogicGetMalfeasanceProofsCall) DoAndReturn ¶ added in v1.4.0
func (c *MockfetchLogicGetMalfeasanceProofsCall) DoAndReturn(f func(context.Context, []types.NodeID) error) *MockfetchLogicGetMalfeasanceProofsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockfetchLogicGetMalfeasanceProofsCall) Return ¶ added in v1.4.0
func (c *MockfetchLogicGetMalfeasanceProofsCall) Return(arg0 error) *MockfetchLogicGetMalfeasanceProofsCall
Return rewrite *gomock.Call.Return
type MockfetchLogicGetMaliciousIDsCall ¶ added in v1.4.0
MockfetchLogicGetMaliciousIDsCall wrap *gomock.Call
func (*MockfetchLogicGetMaliciousIDsCall) Do ¶ added in v1.4.0
func (c *MockfetchLogicGetMaliciousIDsCall) Do(f func(context.Context, p2p.Peer) ([]types.NodeID, error)) *MockfetchLogicGetMaliciousIDsCall
Do rewrite *gomock.Call.Do
func (*MockfetchLogicGetMaliciousIDsCall) DoAndReturn ¶ added in v1.4.0
func (c *MockfetchLogicGetMaliciousIDsCall) DoAndReturn(f func(context.Context, p2p.Peer) ([]types.NodeID, error)) *MockfetchLogicGetMaliciousIDsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockfetchLogicGetMaliciousIDsCall) Return ¶ added in v1.4.0
func (c *MockfetchLogicGetMaliciousIDsCall) Return(arg0 []types.NodeID, arg1 error) *MockfetchLogicGetMaliciousIDsCall
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
func (mr *MockfetchLogicMockRecorder) SelectBestShuffled(arg0 any) *MockfetchLogicSelectBestShuffledCall
SelectBestShuffled indicates an expected call of SelectBestShuffled.
type MockfetchLogicPeerEpochInfoCall ¶ added in v1.4.0
MockfetchLogicPeerEpochInfoCall wrap *gomock.Call
func (*MockfetchLogicPeerEpochInfoCall) Do ¶ added in v1.4.0
func (c *MockfetchLogicPeerEpochInfoCall) Do(f func(context.Context, p2p.Peer, types.EpochID) (*fetch.EpochData, error)) *MockfetchLogicPeerEpochInfoCall
Do rewrite *gomock.Call.Do
func (*MockfetchLogicPeerEpochInfoCall) DoAndReturn ¶ added in v1.4.0
func (c *MockfetchLogicPeerEpochInfoCall) DoAndReturn(f func(context.Context, p2p.Peer, types.EpochID) (*fetch.EpochData, error)) *MockfetchLogicPeerEpochInfoCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockfetchLogicPeerEpochInfoCall) Return ¶ added in v1.4.0
func (c *MockfetchLogicPeerEpochInfoCall) Return(arg0 *fetch.EpochData, arg1 error) *MockfetchLogicPeerEpochInfoCall
Return rewrite *gomock.Call.Return
type MockfetchLogicPeerMeshHashesCall ¶ added in v1.4.0
MockfetchLogicPeerMeshHashesCall wrap *gomock.Call
func (*MockfetchLogicPeerMeshHashesCall) Do ¶ added in v1.4.0
func (c *MockfetchLogicPeerMeshHashesCall) Do(f func(context.Context, p2p.Peer, *fetch.MeshHashRequest) (*fetch.MeshHashes, error)) *MockfetchLogicPeerMeshHashesCall
Do rewrite *gomock.Call.Do
func (*MockfetchLogicPeerMeshHashesCall) DoAndReturn ¶ added in v1.4.0
func (c *MockfetchLogicPeerMeshHashesCall) DoAndReturn(f func(context.Context, p2p.Peer, *fetch.MeshHashRequest) (*fetch.MeshHashes, error)) *MockfetchLogicPeerMeshHashesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockfetchLogicPeerMeshHashesCall) Return ¶ added in v1.4.0
func (c *MockfetchLogicPeerMeshHashesCall) Return(arg0 *fetch.MeshHashes, arg1 error) *MockfetchLogicPeerMeshHashesCall
Return rewrite *gomock.Call.Return
type MockfetchLogicPollLayerDataCall ¶ added in v1.4.0
MockfetchLogicPollLayerDataCall wrap *gomock.Call
func (*MockfetchLogicPollLayerDataCall) Do ¶ added in v1.4.0
func (c *MockfetchLogicPollLayerDataCall) Do(f func(context.Context, types.LayerID, ...p2p.Peer) error) *MockfetchLogicPollLayerDataCall
Do rewrite *gomock.Call.Do
func (*MockfetchLogicPollLayerDataCall) DoAndReturn ¶ added in v1.4.0
func (c *MockfetchLogicPollLayerDataCall) DoAndReturn(f func(context.Context, types.LayerID, ...p2p.Peer) error) *MockfetchLogicPollLayerDataCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockfetchLogicPollLayerDataCall) Return ¶ added in v1.4.0
func (c *MockfetchLogicPollLayerDataCall) Return(arg0 error) *MockfetchLogicPollLayerDataCall
Return rewrite *gomock.Call.Return
type MockfetchLogicPollLayerOpinionsCall ¶ added in v1.4.0
MockfetchLogicPollLayerOpinionsCall wrap *gomock.Call
func (*MockfetchLogicPollLayerOpinionsCall) Do ¶ added in v1.4.0
func (c *MockfetchLogicPollLayerOpinionsCall) Do(f func(context.Context, types.LayerID, bool, []p2p.Peer) ([]*fetch.LayerOpinion, []*types.Certificate, error)) *MockfetchLogicPollLayerOpinionsCall
Do rewrite *gomock.Call.Do
func (*MockfetchLogicPollLayerOpinionsCall) DoAndReturn ¶ added in v1.4.0
func (c *MockfetchLogicPollLayerOpinionsCall) DoAndReturn(f func(context.Context, types.LayerID, bool, []p2p.Peer) ([]*fetch.LayerOpinion, []*types.Certificate, error)) *MockfetchLogicPollLayerOpinionsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockfetchLogicPollLayerOpinionsCall) Return ¶ added in v1.4.0
func (c *MockfetchLogicPollLayerOpinionsCall) Return(arg0 []*fetch.LayerOpinion, arg1 []*types.Certificate, arg2 error) *MockfetchLogicPollLayerOpinionsCall
Return rewrite *gomock.Call.Return
type MockfetchLogicRegisterPeerHashesCall ¶ added in v1.4.0
MockfetchLogicRegisterPeerHashesCall wrap *gomock.Call
func (*MockfetchLogicRegisterPeerHashesCall) Do ¶ added in v1.4.0
func (c *MockfetchLogicRegisterPeerHashesCall) Do(f func(p2p.Peer, []types.Hash32)) *MockfetchLogicRegisterPeerHashesCall
Do rewrite *gomock.Call.Do
func (*MockfetchLogicRegisterPeerHashesCall) DoAndReturn ¶ added in v1.4.0
func (c *MockfetchLogicRegisterPeerHashesCall) DoAndReturn(f func(p2p.Peer, []types.Hash32)) *MockfetchLogicRegisterPeerHashesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockfetchLogicRegisterPeerHashesCall) Return ¶ added in v1.4.0
func (c *MockfetchLogicRegisterPeerHashesCall) Return() *MockfetchLogicRegisterPeerHashesCall
Return rewrite *gomock.Call.Return
type MockfetchLogicSelectBestShuffledCall ¶ added in v1.4.0
MockfetchLogicSelectBestShuffledCall wrap *gomock.Call
func (*MockfetchLogicSelectBestShuffledCall) Do ¶ added in v1.4.0
func (c *MockfetchLogicSelectBestShuffledCall) Do(f func(int) []p2p.Peer) *MockfetchLogicSelectBestShuffledCall
Do rewrite *gomock.Call.Do
func (*MockfetchLogicSelectBestShuffledCall) DoAndReturn ¶ added in v1.4.0
func (c *MockfetchLogicSelectBestShuffledCall) DoAndReturn(f func(int) []p2p.Peer) *MockfetchLogicSelectBestShuffledCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockfetchLogicSelectBestShuffledCall) Return ¶ added in v1.4.0
func (c *MockfetchLogicSelectBestShuffledCall) Return(arg0 []p2p.Peer) *MockfetchLogicSelectBestShuffledCall
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 ¶
GetBallots 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 ¶
GetMalfeasanceProofs mocks base method.
func (*Mockfetcher) GetMaliciousIDs ¶
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
MockfetcherGetAtxsCall wrap *gomock.Call
func (*MockfetcherGetAtxsCall) Do ¶ added in v1.4.0
func (c *MockfetcherGetAtxsCall) Do(f func(context.Context, []types.ATXID, ...system.GetAtxOpt) error) *MockfetcherGetAtxsCall
Do rewrite *gomock.Call.Do
func (*MockfetcherGetAtxsCall) DoAndReturn ¶ added in v1.4.0
func (c *MockfetcherGetAtxsCall) DoAndReturn(f func(context.Context, []types.ATXID, ...system.GetAtxOpt) error) *MockfetcherGetAtxsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockfetcherGetAtxsCall) Return ¶ added in v1.4.0
func (c *MockfetcherGetAtxsCall) Return(arg0 error) *MockfetcherGetAtxsCall
Return rewrite *gomock.Call.Return
type MockfetcherGetBallotsCall ¶ added in v1.4.0
MockfetcherGetBallotsCall wrap *gomock.Call
func (*MockfetcherGetBallotsCall) Do ¶ added in v1.4.0
func (c *MockfetcherGetBallotsCall) Do(f func(context.Context, []types.BallotID) error) *MockfetcherGetBallotsCall
Do rewrite *gomock.Call.Do
func (*MockfetcherGetBallotsCall) DoAndReturn ¶ added in v1.4.0
func (c *MockfetcherGetBallotsCall) DoAndReturn(f func(context.Context, []types.BallotID) error) *MockfetcherGetBallotsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockfetcherGetBallotsCall) Return ¶ added in v1.4.0
func (c *MockfetcherGetBallotsCall) Return(arg0 error) *MockfetcherGetBallotsCall
Return rewrite *gomock.Call.Return
type MockfetcherGetBlocksCall ¶ added in v1.4.0
MockfetcherGetBlocksCall wrap *gomock.Call
func (*MockfetcherGetBlocksCall) Do ¶ added in v1.4.0
func (c *MockfetcherGetBlocksCall) Do(f func(context.Context, []types.BlockID) error) *MockfetcherGetBlocksCall
Do rewrite *gomock.Call.Do
func (*MockfetcherGetBlocksCall) DoAndReturn ¶ added in v1.4.0
func (c *MockfetcherGetBlocksCall) DoAndReturn(f func(context.Context, []types.BlockID) error) *MockfetcherGetBlocksCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockfetcherGetBlocksCall) Return ¶ added in v1.4.0
func (c *MockfetcherGetBlocksCall) Return(arg0 error) *MockfetcherGetBlocksCall
Return rewrite *gomock.Call.Return
type MockfetcherGetCertCall ¶ added in v1.4.0
MockfetcherGetCertCall wrap *gomock.Call
func (*MockfetcherGetCertCall) Do ¶ added in v1.4.0
func (c *MockfetcherGetCertCall) Do(f func(context.Context, types.LayerID, types.BlockID, []p2p.Peer) (*types.Certificate, error)) *MockfetcherGetCertCall
Do rewrite *gomock.Call.Do
func (*MockfetcherGetCertCall) DoAndReturn ¶ added in v1.4.0
func (c *MockfetcherGetCertCall) DoAndReturn(f func(context.Context, types.LayerID, types.BlockID, []p2p.Peer) (*types.Certificate, error)) *MockfetcherGetCertCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockfetcherGetCertCall) Return ¶ added in v1.4.0
func (c *MockfetcherGetCertCall) Return(arg0 *types.Certificate, arg1 error) *MockfetcherGetCertCall
Return rewrite *gomock.Call.Return
type MockfetcherGetLayerDataCall ¶ added in v1.4.0
MockfetcherGetLayerDataCall wrap *gomock.Call
func (*MockfetcherGetLayerDataCall) Do ¶ added in v1.4.0
func (c *MockfetcherGetLayerDataCall) Do(f func(context.Context, p2p.Peer, types.LayerID) ([]byte, error)) *MockfetcherGetLayerDataCall
Do rewrite *gomock.Call.Do
func (*MockfetcherGetLayerDataCall) DoAndReturn ¶ added in v1.4.0
func (c *MockfetcherGetLayerDataCall) DoAndReturn(f func(context.Context, p2p.Peer, types.LayerID) ([]byte, error)) *MockfetcherGetLayerDataCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockfetcherGetLayerDataCall) Return ¶ added in v1.4.0
func (c *MockfetcherGetLayerDataCall) Return(arg0 []byte, arg1 error) *MockfetcherGetLayerDataCall
Return rewrite *gomock.Call.Return
type MockfetcherGetLayerOpinionsCall ¶ added in v1.4.0
MockfetcherGetLayerOpinionsCall wrap *gomock.Call
func (*MockfetcherGetLayerOpinionsCall) Do ¶ added in v1.4.0
func (c *MockfetcherGetLayerOpinionsCall) Do(f func(context.Context, p2p.Peer, types.LayerID) ([]byte, error)) *MockfetcherGetLayerOpinionsCall
Do rewrite *gomock.Call.Do
func (*MockfetcherGetLayerOpinionsCall) DoAndReturn ¶ added in v1.4.0
func (c *MockfetcherGetLayerOpinionsCall) DoAndReturn(f func(context.Context, p2p.Peer, types.LayerID) ([]byte, error)) *MockfetcherGetLayerOpinionsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockfetcherGetLayerOpinionsCall) Return ¶ added in v1.4.0
func (c *MockfetcherGetLayerOpinionsCall) Return(arg0 []byte, arg1 error) *MockfetcherGetLayerOpinionsCall
Return rewrite *gomock.Call.Return
type MockfetcherGetMalfeasanceProofsCall ¶ added in v1.4.0
MockfetcherGetMalfeasanceProofsCall wrap *gomock.Call
func (*MockfetcherGetMalfeasanceProofsCall) Do ¶ added in v1.4.0
func (c *MockfetcherGetMalfeasanceProofsCall) Do(f func(context.Context, []types.NodeID) error) *MockfetcherGetMalfeasanceProofsCall
Do rewrite *gomock.Call.Do
func (*MockfetcherGetMalfeasanceProofsCall) DoAndReturn ¶ added in v1.4.0
func (c *MockfetcherGetMalfeasanceProofsCall) DoAndReturn(f func(context.Context, []types.NodeID) error) *MockfetcherGetMalfeasanceProofsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockfetcherGetMalfeasanceProofsCall) Return ¶ added in v1.4.0
func (c *MockfetcherGetMalfeasanceProofsCall) Return(arg0 error) *MockfetcherGetMalfeasanceProofsCall
Return rewrite *gomock.Call.Return
type MockfetcherGetMaliciousIDsCall ¶ added in v1.4.0
MockfetcherGetMaliciousIDsCall wrap *gomock.Call
func (*MockfetcherGetMaliciousIDsCall) Do ¶ added in v1.4.0
func (c *MockfetcherGetMaliciousIDsCall) Do(f func(context.Context, p2p.Peer) ([]types.NodeID, error)) *MockfetcherGetMaliciousIDsCall
Do rewrite *gomock.Call.Do
func (*MockfetcherGetMaliciousIDsCall) DoAndReturn ¶ added in v1.4.0
func (c *MockfetcherGetMaliciousIDsCall) DoAndReturn(f func(context.Context, p2p.Peer) ([]types.NodeID, error)) *MockfetcherGetMaliciousIDsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockfetcherGetMaliciousIDsCall) Return ¶ added in v1.4.0
func (c *MockfetcherGetMaliciousIDsCall) Return(arg0 []types.NodeID, arg1 error) *MockfetcherGetMaliciousIDsCall
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
MockfetcherPeerEpochInfoCall wrap *gomock.Call
func (*MockfetcherPeerEpochInfoCall) Do ¶ added in v1.4.0
func (c *MockfetcherPeerEpochInfoCall) Do(f func(context.Context, p2p.Peer, types.EpochID) (*fetch.EpochData, error)) *MockfetcherPeerEpochInfoCall
Do rewrite *gomock.Call.Do
func (*MockfetcherPeerEpochInfoCall) DoAndReturn ¶ added in v1.4.0
func (c *MockfetcherPeerEpochInfoCall) DoAndReturn(f func(context.Context, p2p.Peer, types.EpochID) (*fetch.EpochData, error)) *MockfetcherPeerEpochInfoCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockfetcherPeerEpochInfoCall) Return ¶ added in v1.4.0
func (c *MockfetcherPeerEpochInfoCall) Return(arg0 *fetch.EpochData, arg1 error) *MockfetcherPeerEpochInfoCall
Return rewrite *gomock.Call.Return
type MockfetcherPeerMeshHashesCall ¶ added in v1.4.0
MockfetcherPeerMeshHashesCall wrap *gomock.Call
func (*MockfetcherPeerMeshHashesCall) Do ¶ added in v1.4.0
func (c *MockfetcherPeerMeshHashesCall) Do(f func(context.Context, p2p.Peer, *fetch.MeshHashRequest) (*fetch.MeshHashes, error)) *MockfetcherPeerMeshHashesCall
Do rewrite *gomock.Call.Do
func (*MockfetcherPeerMeshHashesCall) DoAndReturn ¶ added in v1.4.0
func (c *MockfetcherPeerMeshHashesCall) DoAndReturn(f func(context.Context, p2p.Peer, *fetch.MeshHashRequest) (*fetch.MeshHashes, error)) *MockfetcherPeerMeshHashesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockfetcherPeerMeshHashesCall) Return ¶ added in v1.4.0
func (c *MockfetcherPeerMeshHashesCall) Return(arg0 *fetch.MeshHashes, arg1 error) *MockfetcherPeerMeshHashesCall
Return rewrite *gomock.Call.Return
type MockfetcherRegisterPeerHashesCall ¶ added in v1.4.0
MockfetcherRegisterPeerHashesCall wrap *gomock.Call
func (*MockfetcherRegisterPeerHashesCall) Do ¶ added in v1.4.0
func (c *MockfetcherRegisterPeerHashesCall) Do(f func(p2p.Peer, []types.Hash32)) *MockfetcherRegisterPeerHashesCall
Do rewrite *gomock.Call.Do
func (*MockfetcherRegisterPeerHashesCall) DoAndReturn ¶ added in v1.4.0
func (c *MockfetcherRegisterPeerHashesCall) DoAndReturn(f func(p2p.Peer, []types.Hash32)) *MockfetcherRegisterPeerHashesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockfetcherRegisterPeerHashesCall) Return ¶ added in v1.4.0
func (c *MockfetcherRegisterPeerHashesCall) Return() *MockfetcherRegisterPeerHashesCall
Return rewrite *gomock.Call.Return
type MockfetcherSelectBestShuffledCall ¶ added in v1.4.0
MockfetcherSelectBestShuffledCall wrap *gomock.Call
func (*MockfetcherSelectBestShuffledCall) Do ¶ added in v1.4.0
func (c *MockfetcherSelectBestShuffledCall) Do(f func(int) []p2p.Peer) *MockfetcherSelectBestShuffledCall
Do rewrite *gomock.Call.Do
func (*MockfetcherSelectBestShuffledCall) DoAndReturn ¶ added in v1.4.0
func (c *MockfetcherSelectBestShuffledCall) DoAndReturn(f func(int) []p2p.Peer) *MockfetcherSelectBestShuffledCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockfetcherSelectBestShuffledCall) Return ¶ added in v1.4.0
func (c *MockfetcherSelectBestShuffledCall) Return(arg0 []p2p.Peer) *MockfetcherSelectBestShuffledCall
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 ¶
func (m *MockforkFinder) EXPECT() *MockforkFinderMockRecorder
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 ¶
NeedResync mocks base method.
type MockforkFinderAddResyncedCall ¶ added in v1.4.0
MockforkFinderAddResyncedCall wrap *gomock.Call
func (*MockforkFinderAddResyncedCall) Do ¶ added in v1.4.0
func (c *MockforkFinderAddResyncedCall) Do(f func(types.LayerID, types.Hash32)) *MockforkFinderAddResyncedCall
Do rewrite *gomock.Call.Do
func (*MockforkFinderAddResyncedCall) DoAndReturn ¶ added in v1.4.0
func (c *MockforkFinderAddResyncedCall) DoAndReturn(f func(types.LayerID, types.Hash32)) *MockforkFinderAddResyncedCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockforkFinderAddResyncedCall) Return ¶ added in v1.4.0
func (c *MockforkFinderAddResyncedCall) Return() *MockforkFinderAddResyncedCall
Return rewrite *gomock.Call.Return
type MockforkFinderFindForkCall ¶ added in v1.4.0
MockforkFinderFindForkCall wrap *gomock.Call
func (*MockforkFinderFindForkCall) Do ¶ added in v1.4.0
func (c *MockforkFinderFindForkCall) Do(f func(context.Context, p2p.Peer, types.LayerID, types.Hash32) (types.LayerID, error)) *MockforkFinderFindForkCall
Do rewrite *gomock.Call.Do
func (*MockforkFinderFindForkCall) DoAndReturn ¶ added in v1.4.0
func (c *MockforkFinderFindForkCall) DoAndReturn(f func(context.Context, p2p.Peer, types.LayerID, types.Hash32) (types.LayerID, error)) *MockforkFinderFindForkCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockforkFinderFindForkCall) Return ¶ added in v1.4.0
func (c *MockforkFinderFindForkCall) Return(arg0 types.LayerID, arg1 error) *MockforkFinderFindForkCall
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
MockforkFinderNeedResyncCall wrap *gomock.Call
func (*MockforkFinderNeedResyncCall) Do ¶ added in v1.4.0
func (c *MockforkFinderNeedResyncCall) Do(f func(types.LayerID, types.Hash32) bool) *MockforkFinderNeedResyncCall
Do rewrite *gomock.Call.Do
func (*MockforkFinderNeedResyncCall) DoAndReturn ¶ added in v1.4.0
func (c *MockforkFinderNeedResyncCall) DoAndReturn(f func(types.LayerID, types.Hash32) bool) *MockforkFinderNeedResyncCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockforkFinderNeedResyncCall) Return ¶ added in v1.4.0
func (c *MockforkFinderNeedResyncCall) Return(arg0 bool) *MockforkFinderNeedResyncCall
Return rewrite *gomock.Call.Return
type MockforkFinderPurgeCall ¶ added in v1.4.0
MockforkFinderPurgeCall wrap *gomock.Call
func (*MockforkFinderPurgeCall) Do ¶ added in v1.4.0
func (c *MockforkFinderPurgeCall) Do(f func(bool, ...p2p.Peer)) *MockforkFinderPurgeCall
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
func (c *MockforkFinderPurgeCall) Return() *MockforkFinderPurgeCall
Return rewrite *gomock.Call.Return
type MockforkFinderUpdateAgreementCall ¶ added in v1.4.0
MockforkFinderUpdateAgreementCall wrap *gomock.Call
func (*MockforkFinderUpdateAgreementCall) Do ¶ added in v1.4.0
func (c *MockforkFinderUpdateAgreementCall) Do(f func(p2p.Peer, types.LayerID, types.Hash32, time.Time)) *MockforkFinderUpdateAgreementCall
Do rewrite *gomock.Call.Do
func (*MockforkFinderUpdateAgreementCall) DoAndReturn ¶ added in v1.4.0
func (c *MockforkFinderUpdateAgreementCall) DoAndReturn(f func(p2p.Peer, types.LayerID, types.Hash32, time.Time)) *MockforkFinderUpdateAgreementCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockforkFinderUpdateAgreementCall) Return ¶ added in v1.4.0
func (c *MockforkFinderUpdateAgreementCall) Return() *MockforkFinderUpdateAgreementCall
Return rewrite *gomock.Call.Return
type MockidProvider ¶
type MockidProvider struct {
// contains filtered or unexported fields
}
MockidProvider is a mock of idProvider interface.
func NewMockidProvider ¶
func NewMockidProvider(ctrl *gomock.Controller) *MockidProvider
NewMockidProvider creates a new mock instance.
func (*MockidProvider) EXPECT ¶
func (m *MockidProvider) EXPECT() *MockidProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockidProvider) IdentityExists ¶
func (m *MockidProvider) IdentityExists(id types.NodeID) (bool, error)
IdentityExists mocks base method.
type MockidProviderIdentityExistsCall ¶ added in v1.4.0
MockidProviderIdentityExistsCall wrap *gomock.Call
func (*MockidProviderIdentityExistsCall) Do ¶ added in v1.4.0
func (c *MockidProviderIdentityExistsCall) Do(f func(types.NodeID) (bool, error)) *MockidProviderIdentityExistsCall
Do rewrite *gomock.Call.Do
func (*MockidProviderIdentityExistsCall) DoAndReturn ¶ added in v1.4.0
func (c *MockidProviderIdentityExistsCall) DoAndReturn(f func(types.NodeID) (bool, error)) *MockidProviderIdentityExistsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockidProviderIdentityExistsCall) Return ¶ added in v1.4.0
func (c *MockidProviderIdentityExistsCall) Return(arg0 bool, arg1 error) *MockidProviderIdentityExistsCall
Return rewrite *gomock.Call.Return
type MockidProviderMockRecorder ¶
type MockidProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockidProviderMockRecorder is the mock recorder for MockidProvider.
func (*MockidProviderMockRecorder) IdentityExists ¶
func (mr *MockidProviderMockRecorder) IdentityExists(id any) *MockidProviderIdentityExistsCall
IdentityExists indicates an expected call of IdentityExists.
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 ¶
func (m *MocklayerPatrol) EXPECT() *MocklayerPatrolMockRecorder
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
MocklayerPatrolIsHareInChargeCall wrap *gomock.Call
func (*MocklayerPatrolIsHareInChargeCall) Do ¶ added in v1.4.0
func (c *MocklayerPatrolIsHareInChargeCall) Do(f func(types.LayerID) bool) *MocklayerPatrolIsHareInChargeCall
Do rewrite *gomock.Call.Do
func (*MocklayerPatrolIsHareInChargeCall) DoAndReturn ¶ added in v1.4.0
func (c *MocklayerPatrolIsHareInChargeCall) DoAndReturn(f func(types.LayerID) bool) *MocklayerPatrolIsHareInChargeCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MocklayerPatrolIsHareInChargeCall) Return ¶ added in v1.4.0
func (c *MocklayerPatrolIsHareInChargeCall) Return(arg0 bool) *MocklayerPatrolIsHareInChargeCall
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 ¶
func (mr *MocklayerPatrolMockRecorder) IsHareInCharge(arg0 any) *MocklayerPatrolIsHareInChargeCall
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 ¶
func (m *MocklayerTicker) EXPECT() *MocklayerTickerMockRecorder
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
MocklayerTickerCurrentLayerCall wrap *gomock.Call
func (*MocklayerTickerCurrentLayerCall) Do ¶ added in v1.4.0
func (c *MocklayerTickerCurrentLayerCall) Do(f func() types.LayerID) *MocklayerTickerCurrentLayerCall
Do rewrite *gomock.Call.Do
func (*MocklayerTickerCurrentLayerCall) DoAndReturn ¶ added in v1.4.0
func (c *MocklayerTickerCurrentLayerCall) DoAndReturn(f func() types.LayerID) *MocklayerTickerCurrentLayerCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MocklayerTickerCurrentLayerCall) Return ¶ added in v1.4.0
func (c *MocklayerTickerCurrentLayerCall) Return(arg0 types.LayerID) *MocklayerTickerCurrentLayerCall
Return rewrite *gomock.Call.Return
type MocklayerTickerLayerToTimeCall ¶ added in v1.4.0
MocklayerTickerLayerToTimeCall wrap *gomock.Call
func (*MocklayerTickerLayerToTimeCall) Do ¶ added in v1.4.0
func (c *MocklayerTickerLayerToTimeCall) Do(f func(types.LayerID) time.Time) *MocklayerTickerLayerToTimeCall
Do rewrite *gomock.Call.Do
func (*MocklayerTickerLayerToTimeCall) DoAndReturn ¶ added in v1.4.0
func (c *MocklayerTickerLayerToTimeCall) DoAndReturn(f func(types.LayerID) time.Time) *MocklayerTickerLayerToTimeCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MocklayerTickerLayerToTimeCall) Return ¶ added in v1.4.0
func (c *MocklayerTickerLayerToTimeCall) Return(arg0 time.Time) *MocklayerTickerLayerToTimeCall
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 ¶
func (mr *MocklayerTickerMockRecorder) CurrentLayer() *MocklayerTickerCurrentLayerCall
CurrentLayer indicates an expected call of CurrentLayer.
func (*MocklayerTickerMockRecorder) LayerToTime ¶ added in v1.4.0
func (mr *MocklayerTickerMockRecorder) LayerToTime(arg0 any) *MocklayerTickerLayerToTimeCall
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
func (m *MockmalSyncer) EXPECT() *MockmalSyncerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockmalSyncer) EnsureInSync ¶ added in v1.4.3
EnsureInSync mocks base method.
type MockmalSyncerDownloadLoopCall ¶ added in v1.4.3
MockmalSyncerDownloadLoopCall wrap *gomock.Call
func (*MockmalSyncerDownloadLoopCall) Do ¶ added in v1.4.3
func (c *MockmalSyncerDownloadLoopCall) Do(f func(context.Context) error) *MockmalSyncerDownloadLoopCall
Do rewrite *gomock.Call.Do
func (*MockmalSyncerDownloadLoopCall) DoAndReturn ¶ added in v1.4.3
func (c *MockmalSyncerDownloadLoopCall) DoAndReturn(f func(context.Context) error) *MockmalSyncerDownloadLoopCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockmalSyncerDownloadLoopCall) Return ¶ added in v1.4.3
func (c *MockmalSyncerDownloadLoopCall) Return(arg0 error) *MockmalSyncerDownloadLoopCall
Return rewrite *gomock.Call.Return
type MockmalSyncerEnsureInSyncCall ¶ added in v1.4.3
MockmalSyncerEnsureInSyncCall wrap *gomock.Call
func (*MockmalSyncerEnsureInSyncCall) Do ¶ added in v1.4.3
func (c *MockmalSyncerEnsureInSyncCall) Do(f func(context.Context, time.Time, time.Time) error) *MockmalSyncerEnsureInSyncCall
Do rewrite *gomock.Call.Do
func (*MockmalSyncerEnsureInSyncCall) DoAndReturn ¶ added in v1.4.3
func (c *MockmalSyncerEnsureInSyncCall) DoAndReturn(f func(context.Context, time.Time, time.Time) error) *MockmalSyncerEnsureInSyncCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockmalSyncerEnsureInSyncCall) Return ¶ added in v1.4.3
func (c *MockmalSyncerEnsureInSyncCall) Return(arg0 error) *MockmalSyncerEnsureInSyncCall
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
func (mr *MockmalSyncerMockRecorder) DownloadLoop(parent any) *MockmalSyncerDownloadLoopCall
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 ¶
func (m *MockmeshProvider) EXPECT() *MockmeshProviderMockRecorder
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
MockmeshProviderSetZeroBlockLayerCall wrap *gomock.Call
func (*MockmeshProviderSetZeroBlockLayerCall) Do ¶ added in v1.4.0
func (c *MockmeshProviderSetZeroBlockLayerCall) Do(f func(context.Context, types.LayerID)) *MockmeshProviderSetZeroBlockLayerCall
Do rewrite *gomock.Call.Do
func (*MockmeshProviderSetZeroBlockLayerCall) DoAndReturn ¶ added in v1.4.0
func (c *MockmeshProviderSetZeroBlockLayerCall) DoAndReturn(f func(context.Context, types.LayerID)) *MockmeshProviderSetZeroBlockLayerCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockmeshProviderSetZeroBlockLayerCall) Return ¶ added in v1.4.0
func (c *MockmeshProviderSetZeroBlockLayerCall) Return() *MockmeshProviderSetZeroBlockLayerCall
Return rewrite *gomock.Call.Return