Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: ./interface.go
Generated by this command:
mockgen -typed -package=mocks -destination=./mocks/mocks.go -source=./interface.go
Package mocks is a generated GoMock package.
Index ¶
- type MockactiveSetCache
- type MockactiveSetCacheMockRecorder
- type MockcertHandler
- type MockcertHandlerMockRecorder
- type MockfetchLogic
- func (m *MockfetchLogic) EXPECT() *MockfetchLogicMockRecorder
- func (m *MockfetchLogic) GetAtxs(arg0 context.Context, arg1 []types.ATXID) 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) GetEpochATXs(arg0 context.Context, arg1 types.EpochID) error
- func (m *MockfetchLogic) GetLayerData(arg0 context.Context, arg1 []p2p.Peer, arg2 types.LayerID, ...) error
- func (m *MockfetchLogic) GetLayerOpinions(arg0 context.Context, arg1 []p2p.Peer, arg2 types.LayerID, ...) error
- func (m *MockfetchLogic) GetMalfeasanceProofs(arg0 context.Context, arg1 []types.NodeID) error
- func (m *MockfetchLogic) GetMaliciousIDs(arg0 context.Context, arg1 []p2p.Peer, arg2 func([]byte, p2p.Peer), ...) 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) PollMaliciousProofs(ctx context.Context) error
- func (m *MockfetchLogic) RegisterPeerHashes(peer p2p.Peer, hashes []types.Hash32)
- func (m *MockfetchLogic) SelectBestShuffled(arg0 int) []p2p.Peer
- type MockfetchLogicMockRecorder
- func (mr *MockfetchLogicMockRecorder) GetAtxs(arg0, arg1 any) *fetchLogicGetAtxsCall
- func (mr *MockfetchLogicMockRecorder) GetBallots(arg0, arg1 any) *fetchLogicGetBallotsCall
- func (mr *MockfetchLogicMockRecorder) GetBlocks(arg0, arg1 any) *fetchLogicGetBlocksCall
- func (mr *MockfetchLogicMockRecorder) GetCert(arg0, arg1, arg2, arg3 any) *fetchLogicGetCertCall
- func (mr *MockfetchLogicMockRecorder) GetEpochATXs(arg0, arg1 any) *fetchLogicGetEpochATXsCall
- func (mr *MockfetchLogicMockRecorder) GetLayerData(arg0, arg1, arg2, arg3, arg4 any) *fetchLogicGetLayerDataCall
- func (mr *MockfetchLogicMockRecorder) GetLayerOpinions(arg0, arg1, arg2, arg3, arg4 any) *fetchLogicGetLayerOpinionsCall
- func (mr *MockfetchLogicMockRecorder) GetMalfeasanceProofs(arg0, arg1 any) *fetchLogicGetMalfeasanceProofsCall
- func (mr *MockfetchLogicMockRecorder) GetMaliciousIDs(arg0, arg1, arg2, arg3 any) *fetchLogicGetMaliciousIDsCall
- func (mr *MockfetchLogicMockRecorder) PeerEpochInfo(arg0, arg1, arg2 any) *fetchLogicPeerEpochInfoCall
- func (mr *MockfetchLogicMockRecorder) PeerMeshHashes(arg0, arg1, arg2 any) *fetchLogicPeerMeshHashesCall
- func (mr *MockfetchLogicMockRecorder) PollLayerData(arg0, arg1 any, arg2 ...any) *fetchLogicPollLayerDataCall
- func (mr *MockfetchLogicMockRecorder) PollLayerOpinions(arg0, arg1, arg2, arg3 any) *fetchLogicPollLayerOpinionsCall
- func (mr *MockfetchLogicMockRecorder) PollMaliciousProofs(ctx any) *fetchLogicPollMaliciousProofsCall
- func (mr *MockfetchLogicMockRecorder) RegisterPeerHashes(peer, hashes any) *fetchLogicRegisterPeerHashesCall
- func (mr *MockfetchLogicMockRecorder) SelectBestShuffled(arg0 any) *fetchLogicSelectBestShuffledCall
- type Mockfetcher
- func (m *Mockfetcher) EXPECT() *MockfetcherMockRecorder
- func (m *Mockfetcher) GetAtxs(arg0 context.Context, arg1 []types.ATXID) 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, ...) error
- func (m *Mockfetcher) GetLayerOpinions(arg0 context.Context, arg1 []p2p.Peer, arg2 types.LayerID, ...) error
- func (m *Mockfetcher) GetMalfeasanceProofs(arg0 context.Context, arg1 []types.NodeID) error
- func (m *Mockfetcher) GetMaliciousIDs(arg0 context.Context, arg1 []p2p.Peer, arg2 func([]byte, p2p.Peer), ...) 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 MockfetcherMockRecorder
- func (mr *MockfetcherMockRecorder) GetAtxs(arg0, arg1 any) *fetcherGetAtxsCall
- func (mr *MockfetcherMockRecorder) GetBallots(arg0, arg1 any) *fetcherGetBallotsCall
- func (mr *MockfetcherMockRecorder) GetBlocks(arg0, arg1 any) *fetcherGetBlocksCall
- func (mr *MockfetcherMockRecorder) GetCert(arg0, arg1, arg2, arg3 any) *fetcherGetCertCall
- func (mr *MockfetcherMockRecorder) GetLayerData(arg0, arg1, arg2, arg3, arg4 any) *fetcherGetLayerDataCall
- func (mr *MockfetcherMockRecorder) GetLayerOpinions(arg0, arg1, arg2, arg3, arg4 any) *fetcherGetLayerOpinionsCall
- func (mr *MockfetcherMockRecorder) GetMalfeasanceProofs(arg0, arg1 any) *fetcherGetMalfeasanceProofsCall
- func (mr *MockfetcherMockRecorder) GetMaliciousIDs(arg0, arg1, arg2, arg3 any) *fetcherGetMaliciousIDsCall
- func (mr *MockfetcherMockRecorder) PeerEpochInfo(arg0, arg1, arg2 any) *fetcherPeerEpochInfoCall
- func (mr *MockfetcherMockRecorder) PeerMeshHashes(arg0, arg1, arg2 any) *fetcherPeerMeshHashesCall
- func (mr *MockfetcherMockRecorder) RegisterPeerHashes(peer, hashes any) *fetcherRegisterPeerHashesCall
- func (mr *MockfetcherMockRecorder) SelectBestShuffled(arg0 any) *fetcherSelectBestShuffledCall
- 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 MockforkFinderMockRecorder
- func (mr *MockforkFinderMockRecorder) AddResynced(arg0, arg1 any) *forkFinderAddResyncedCall
- func (mr *MockforkFinderMockRecorder) FindFork(arg0, arg1, arg2, arg3 any) *forkFinderFindForkCall
- func (mr *MockforkFinderMockRecorder) NeedResync(arg0, arg1 any) *forkFinderNeedResyncCall
- func (mr *MockforkFinderMockRecorder) Purge(arg0 any, arg1 ...any) *forkFinderPurgeCall
- func (mr *MockforkFinderMockRecorder) UpdateAgreement(arg0, arg1, arg2, arg3 any) *forkFinderUpdateAgreementCall
- type MockidProvider
- type MockidProviderMockRecorder
- type MocklayerPatrol
- type MocklayerPatrolMockRecorder
- type MocklayerTicker
- type MocklayerTickerMockRecorder
- type MockmeshProvider
- type MockmeshProviderMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockactiveSetCache ¶
type MockactiveSetCache struct {
// contains filtered or unexported fields
}
MockactiveSetCache is a mock of activeSetCache interface.
func NewMockactiveSetCache ¶
func NewMockactiveSetCache(ctrl *gomock.Controller) *MockactiveSetCache
NewMockactiveSetCache creates a new mock instance.
func (*MockactiveSetCache) EXPECT ¶
func (m *MockactiveSetCache) EXPECT() *MockactiveSetCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockactiveSetCache) GetMissingActiveSet ¶
func (m *MockactiveSetCache) GetMissingActiveSet(arg0 types.EpochID, arg1 []types.ATXID) []types.ATXID
GetMissingActiveSet mocks base method.
type MockactiveSetCacheMockRecorder ¶
type MockactiveSetCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockactiveSetCacheMockRecorder is the mock recorder for MockactiveSetCache.
func (*MockactiveSetCacheMockRecorder) GetMissingActiveSet ¶
func (mr *MockactiveSetCacheMockRecorder) GetMissingActiveSet(arg0, arg1 any) *activeSetCacheGetMissingActiveSetCall
GetMissingActiveSet indicates an expected call of GetMissingActiveSet.
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 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) *certHandlerHandleSyncedCertificateCall
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) 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) GetEpochATXs ¶
GetEpochATXs mocks base method.
func (*MockfetchLogic) GetLayerData ¶
func (m *MockfetchLogic) GetLayerData(arg0 context.Context, arg1 []p2p.Peer, arg2 types.LayerID, arg3 func([]byte, p2p.Peer), arg4 func(error, p2p.Peer)) error
GetLayerData mocks base method.
func (*MockfetchLogic) GetLayerOpinions ¶
func (m *MockfetchLogic) GetLayerOpinions(arg0 context.Context, arg1 []p2p.Peer, arg2 types.LayerID, arg3 func([]byte, p2p.Peer), arg4 func(error, p2p.Peer)) 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, arg2 func([]byte, p2p.Peer), arg3 func(error, p2p.Peer)) 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) PollMaliciousProofs ¶
func (m *MockfetchLogic) PollMaliciousProofs(ctx context.Context) error
PollMaliciousProofs 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 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) *fetchLogicGetAtxsCall
GetAtxs indicates an expected call of GetAtxs.
func (*MockfetchLogicMockRecorder) GetBallots ¶
func (mr *MockfetchLogicMockRecorder) GetBallots(arg0, arg1 any) *fetchLogicGetBallotsCall
GetBallots indicates an expected call of GetBallots.
func (*MockfetchLogicMockRecorder) GetBlocks ¶
func (mr *MockfetchLogicMockRecorder) GetBlocks(arg0, arg1 any) *fetchLogicGetBlocksCall
GetBlocks indicates an expected call of GetBlocks.
func (*MockfetchLogicMockRecorder) GetCert ¶ added in v1.1.0
func (mr *MockfetchLogicMockRecorder) GetCert(arg0, arg1, arg2, arg3 any) *fetchLogicGetCertCall
GetCert indicates an expected call of GetCert.
func (*MockfetchLogicMockRecorder) GetEpochATXs ¶
func (mr *MockfetchLogicMockRecorder) GetEpochATXs(arg0, arg1 any) *fetchLogicGetEpochATXsCall
GetEpochATXs indicates an expected call of GetEpochATXs.
func (*MockfetchLogicMockRecorder) GetLayerData ¶
func (mr *MockfetchLogicMockRecorder) GetLayerData(arg0, arg1, arg2, arg3, arg4 any) *fetchLogicGetLayerDataCall
GetLayerData indicates an expected call of GetLayerData.
func (*MockfetchLogicMockRecorder) GetLayerOpinions ¶
func (mr *MockfetchLogicMockRecorder) GetLayerOpinions(arg0, arg1, arg2, arg3, arg4 any) *fetchLogicGetLayerOpinionsCall
GetLayerOpinions indicates an expected call of GetLayerOpinions.
func (*MockfetchLogicMockRecorder) GetMalfeasanceProofs ¶
func (mr *MockfetchLogicMockRecorder) GetMalfeasanceProofs(arg0, arg1 any) *fetchLogicGetMalfeasanceProofsCall
GetMalfeasanceProofs indicates an expected call of GetMalfeasanceProofs.
func (*MockfetchLogicMockRecorder) GetMaliciousIDs ¶
func (mr *MockfetchLogicMockRecorder) GetMaliciousIDs(arg0, arg1, arg2, arg3 any) *fetchLogicGetMaliciousIDsCall
GetMaliciousIDs indicates an expected call of GetMaliciousIDs.
func (*MockfetchLogicMockRecorder) PeerEpochInfo ¶
func (mr *MockfetchLogicMockRecorder) PeerEpochInfo(arg0, arg1, arg2 any) *fetchLogicPeerEpochInfoCall
PeerEpochInfo indicates an expected call of PeerEpochInfo.
func (*MockfetchLogicMockRecorder) PeerMeshHashes ¶
func (mr *MockfetchLogicMockRecorder) PeerMeshHashes(arg0, arg1, arg2 any) *fetchLogicPeerMeshHashesCall
PeerMeshHashes indicates an expected call of PeerMeshHashes.
func (*MockfetchLogicMockRecorder) PollLayerData ¶
func (mr *MockfetchLogicMockRecorder) PollLayerData(arg0, arg1 any, arg2 ...any) *fetchLogicPollLayerDataCall
PollLayerData indicates an expected call of PollLayerData.
func (*MockfetchLogicMockRecorder) PollLayerOpinions ¶
func (mr *MockfetchLogicMockRecorder) PollLayerOpinions(arg0, arg1, arg2, arg3 any) *fetchLogicPollLayerOpinionsCall
PollLayerOpinions indicates an expected call of PollLayerOpinions.
func (*MockfetchLogicMockRecorder) PollMaliciousProofs ¶
func (mr *MockfetchLogicMockRecorder) PollMaliciousProofs(ctx any) *fetchLogicPollMaliciousProofsCall
PollMaliciousProofs indicates an expected call of PollMaliciousProofs.
func (*MockfetchLogicMockRecorder) RegisterPeerHashes ¶
func (mr *MockfetchLogicMockRecorder) RegisterPeerHashes(peer, hashes any) *fetchLogicRegisterPeerHashesCall
RegisterPeerHashes indicates an expected call of RegisterPeerHashes.
func (*MockfetchLogicMockRecorder) SelectBestShuffled ¶ added in v1.2.6
func (mr *MockfetchLogicMockRecorder) SelectBestShuffled(arg0 any) *fetchLogicSelectBestShuffledCall
SelectBestShuffled indicates an expected call of SelectBestShuffled.
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) 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, arg3 func([]byte, p2p.Peer), arg4 func(error, p2p.Peer)) error
GetLayerData mocks base method.
func (*Mockfetcher) GetLayerOpinions ¶
func (m *Mockfetcher) GetLayerOpinions(arg0 context.Context, arg1 []p2p.Peer, arg2 types.LayerID, arg3 func([]byte, p2p.Peer), arg4 func(error, p2p.Peer)) error
GetLayerOpinions mocks base method.
func (*Mockfetcher) GetMalfeasanceProofs ¶
GetMalfeasanceProofs mocks base method.
func (*Mockfetcher) GetMaliciousIDs ¶
func (m *Mockfetcher) GetMaliciousIDs(arg0 context.Context, arg1 []p2p.Peer, arg2 func([]byte, p2p.Peer), arg3 func(error, p2p.Peer)) 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 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) *fetcherGetAtxsCall
GetAtxs indicates an expected call of GetAtxs.
func (*MockfetcherMockRecorder) GetBallots ¶
func (mr *MockfetcherMockRecorder) GetBallots(arg0, arg1 any) *fetcherGetBallotsCall
GetBallots indicates an expected call of GetBallots.
func (*MockfetcherMockRecorder) GetBlocks ¶
func (mr *MockfetcherMockRecorder) GetBlocks(arg0, arg1 any) *fetcherGetBlocksCall
GetBlocks indicates an expected call of GetBlocks.
func (*MockfetcherMockRecorder) GetCert ¶ added in v1.1.0
func (mr *MockfetcherMockRecorder) GetCert(arg0, arg1, arg2, arg3 any) *fetcherGetCertCall
GetCert indicates an expected call of GetCert.
func (*MockfetcherMockRecorder) GetLayerData ¶
func (mr *MockfetcherMockRecorder) GetLayerData(arg0, arg1, arg2, arg3, arg4 any) *fetcherGetLayerDataCall
GetLayerData indicates an expected call of GetLayerData.
func (*MockfetcherMockRecorder) GetLayerOpinions ¶
func (mr *MockfetcherMockRecorder) GetLayerOpinions(arg0, arg1, arg2, arg3, arg4 any) *fetcherGetLayerOpinionsCall
GetLayerOpinions indicates an expected call of GetLayerOpinions.
func (*MockfetcherMockRecorder) GetMalfeasanceProofs ¶
func (mr *MockfetcherMockRecorder) GetMalfeasanceProofs(arg0, arg1 any) *fetcherGetMalfeasanceProofsCall
GetMalfeasanceProofs indicates an expected call of GetMalfeasanceProofs.
func (*MockfetcherMockRecorder) GetMaliciousIDs ¶
func (mr *MockfetcherMockRecorder) GetMaliciousIDs(arg0, arg1, arg2, arg3 any) *fetcherGetMaliciousIDsCall
GetMaliciousIDs indicates an expected call of GetMaliciousIDs.
func (*MockfetcherMockRecorder) PeerEpochInfo ¶
func (mr *MockfetcherMockRecorder) PeerEpochInfo(arg0, arg1, arg2 any) *fetcherPeerEpochInfoCall
PeerEpochInfo indicates an expected call of PeerEpochInfo.
func (*MockfetcherMockRecorder) PeerMeshHashes ¶
func (mr *MockfetcherMockRecorder) PeerMeshHashes(arg0, arg1, arg2 any) *fetcherPeerMeshHashesCall
PeerMeshHashes indicates an expected call of PeerMeshHashes.
func (*MockfetcherMockRecorder) RegisterPeerHashes ¶
func (mr *MockfetcherMockRecorder) RegisterPeerHashes(peer, hashes any) *fetcherRegisterPeerHashesCall
RegisterPeerHashes indicates an expected call of RegisterPeerHashes.
func (*MockfetcherMockRecorder) SelectBestShuffled ¶ added in v1.2.6
func (mr *MockfetcherMockRecorder) SelectBestShuffled(arg0 any) *fetcherSelectBestShuffledCall
SelectBestShuffled indicates an expected call of SelectBestShuffled.
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 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) *forkFinderAddResyncedCall
AddResynced indicates an expected call of AddResynced.
func (*MockforkFinderMockRecorder) FindFork ¶
func (mr *MockforkFinderMockRecorder) FindFork(arg0, arg1, arg2, arg3 any) *forkFinderFindForkCall
FindFork indicates an expected call of FindFork.
func (*MockforkFinderMockRecorder) NeedResync ¶
func (mr *MockforkFinderMockRecorder) NeedResync(arg0, arg1 any) *forkFinderNeedResyncCall
NeedResync indicates an expected call of NeedResync.
func (*MockforkFinderMockRecorder) Purge ¶
func (mr *MockforkFinderMockRecorder) Purge(arg0 any, arg1 ...any) *forkFinderPurgeCall
Purge indicates an expected call of Purge.
func (*MockforkFinderMockRecorder) UpdateAgreement ¶
func (mr *MockforkFinderMockRecorder) UpdateAgreement(arg0, arg1, arg2, arg3 any) *forkFinderUpdateAgreementCall
UpdateAgreement indicates an expected call of UpdateAgreement.
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 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) *idProviderIdentityExistsCall
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 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) *layerPatrolIsHareInChargeCall
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.
type MocklayerTickerMockRecorder ¶
type MocklayerTickerMockRecorder struct {
// contains filtered or unexported fields
}
MocklayerTickerMockRecorder is the mock recorder for MocklayerTicker.
func (*MocklayerTickerMockRecorder) CurrentLayer ¶
func (mr *MocklayerTickerMockRecorder) CurrentLayer() *layerTickerCurrentLayerCall
CurrentLayer indicates an expected call of CurrentLayer.
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) *meshProviderSetZeroBlockLayerCall
SetZeroBlockLayer indicates an expected call of SetZeroBlockLayer.