Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockActiveSetFetcher
- type MockActiveSetFetcherGetActiveSetCall
- func (c *MockActiveSetFetcherGetActiveSetCall) Do(f func(context.Context, types.Hash32) error) *MockActiveSetFetcherGetActiveSetCall
- func (c *MockActiveSetFetcherGetActiveSetCall) DoAndReturn(f func(context.Context, types.Hash32) error) *MockActiveSetFetcherGetActiveSetCall
- func (c *MockActiveSetFetcherGetActiveSetCall) Return(arg0 error) *MockActiveSetFetcherGetActiveSetCall
- type MockActiveSetFetcherMockRecorder
- type MockAtxFetcher
- type MockAtxFetcherGetAtxsCall
- func (c *MockAtxFetcherGetAtxsCall) Do(f func(context.Context, []types.ATXID, ...system.GetAtxOpt) error) *MockAtxFetcherGetAtxsCall
- func (c *MockAtxFetcherGetAtxsCall) DoAndReturn(f func(context.Context, []types.ATXID, ...system.GetAtxOpt) error) *MockAtxFetcherGetAtxsCall
- func (c *MockAtxFetcherGetAtxsCall) Return(arg0 error) *MockAtxFetcherGetAtxsCall
- type MockAtxFetcherMockRecorder
- type MockBallotFetcher
- type MockBallotFetcherGetBallotsCall
- func (c *MockBallotFetcherGetBallotsCall) Do(f func(context.Context, []types.BallotID) error) *MockBallotFetcherGetBallotsCall
- func (c *MockBallotFetcherGetBallotsCall) DoAndReturn(f func(context.Context, []types.BallotID) error) *MockBallotFetcherGetBallotsCall
- func (c *MockBallotFetcherGetBallotsCall) Return(arg0 error) *MockBallotFetcherGetBallotsCall
- type MockBallotFetcherMockRecorder
- type MockBeaconCollector
- type MockBeaconCollectorMockRecorder
- type MockBeaconCollectorReportBeaconFromBallotCall
- func (c *MockBeaconCollectorReportBeaconFromBallotCall) Do(f func(types.EpochID, *types.Ballot, types.Beacon, fixed.Fixed)) *MockBeaconCollectorReportBeaconFromBallotCall
- func (c *MockBeaconCollectorReportBeaconFromBallotCall) DoAndReturn(f func(types.EpochID, *types.Ballot, types.Beacon, fixed.Fixed)) *MockBeaconCollectorReportBeaconFromBallotCall
- func (c *MockBeaconCollectorReportBeaconFromBallotCall) Return() *MockBeaconCollectorReportBeaconFromBallotCall
- type MockBeaconGetter
- type MockBeaconGetterGetBeaconCall
- func (c *MockBeaconGetterGetBeaconCall) Do(f func(types.EpochID) (types.Beacon, error)) *MockBeaconGetterGetBeaconCall
- func (c *MockBeaconGetterGetBeaconCall) DoAndReturn(f func(types.EpochID) (types.Beacon, error)) *MockBeaconGetterGetBeaconCall
- func (c *MockBeaconGetterGetBeaconCall) Return(arg0 types.Beacon, arg1 error) *MockBeaconGetterGetBeaconCall
- type MockBeaconGetterMockRecorder
- type MockBlockFetcher
- type MockBlockFetcherGetBlocksCall
- func (c *MockBlockFetcherGetBlocksCall) Do(f func(context.Context, []types.BlockID) error) *MockBlockFetcherGetBlocksCall
- func (c *MockBlockFetcherGetBlocksCall) DoAndReturn(f func(context.Context, []types.BlockID) error) *MockBlockFetcherGetBlocksCall
- func (c *MockBlockFetcherGetBlocksCall) Return(arg0 error) *MockBlockFetcherGetBlocksCall
- type MockBlockFetcherMockRecorder
- type MockFetcher
- func (m *MockFetcher) EXPECT() *MockFetcherMockRecorder
- func (m *MockFetcher) GetActiveSet(arg0 context.Context, arg1 types.Hash32) error
- 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) GetBlockTxs(arg0 context.Context, arg1 []types.TransactionID) error
- func (m *MockFetcher) GetBlocks(arg0 context.Context, arg1 []types.BlockID) error
- func (m *MockFetcher) GetPoetProof(arg0 context.Context, arg1 types.Hash32) error
- func (m *MockFetcher) GetProposalTxs(arg0 context.Context, arg1 []types.TransactionID) error
- func (m *MockFetcher) GetProposals(arg0 context.Context, arg1 []types.ProposalID) error
- func (m *MockFetcher) RegisterPeerHashes(peer p2p.Peer, hashes []types.Hash32)
- type MockFetcherGetActiveSetCall
- func (c *MockFetcherGetActiveSetCall) Do(f func(context.Context, types.Hash32) error) *MockFetcherGetActiveSetCall
- func (c *MockFetcherGetActiveSetCall) DoAndReturn(f func(context.Context, types.Hash32) error) *MockFetcherGetActiveSetCall
- func (c *MockFetcherGetActiveSetCall) Return(arg0 error) *MockFetcherGetActiveSetCall
- 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 MockFetcherGetBlockTxsCall
- func (c *MockFetcherGetBlockTxsCall) Do(f func(context.Context, []types.TransactionID) error) *MockFetcherGetBlockTxsCall
- func (c *MockFetcherGetBlockTxsCall) DoAndReturn(f func(context.Context, []types.TransactionID) error) *MockFetcherGetBlockTxsCall
- func (c *MockFetcherGetBlockTxsCall) Return(arg0 error) *MockFetcherGetBlockTxsCall
- 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 MockFetcherGetPoetProofCall
- func (c *MockFetcherGetPoetProofCall) Do(f func(context.Context, types.Hash32) error) *MockFetcherGetPoetProofCall
- func (c *MockFetcherGetPoetProofCall) DoAndReturn(f func(context.Context, types.Hash32) error) *MockFetcherGetPoetProofCall
- func (c *MockFetcherGetPoetProofCall) Return(arg0 error) *MockFetcherGetPoetProofCall
- type MockFetcherGetProposalTxsCall
- func (c *MockFetcherGetProposalTxsCall) Do(f func(context.Context, []types.TransactionID) error) *MockFetcherGetProposalTxsCall
- func (c *MockFetcherGetProposalTxsCall) DoAndReturn(f func(context.Context, []types.TransactionID) error) *MockFetcherGetProposalTxsCall
- func (c *MockFetcherGetProposalTxsCall) Return(arg0 error) *MockFetcherGetProposalTxsCall
- type MockFetcherGetProposalsCall
- func (c *MockFetcherGetProposalsCall) Do(f func(context.Context, []types.ProposalID) error) *MockFetcherGetProposalsCall
- func (c *MockFetcherGetProposalsCall) DoAndReturn(f func(context.Context, []types.ProposalID) error) *MockFetcherGetProposalsCall
- func (c *MockFetcherGetProposalsCall) Return(arg0 error) *MockFetcherGetProposalsCall
- type MockFetcherMockRecorder
- func (mr *MockFetcherMockRecorder) GetActiveSet(arg0, arg1 any) *MockFetcherGetActiveSetCall
- func (mr *MockFetcherMockRecorder) GetAtxs(arg0, arg1 any, arg2 ...any) *MockFetcherGetAtxsCall
- func (mr *MockFetcherMockRecorder) GetBallots(arg0, arg1 any) *MockFetcherGetBallotsCall
- func (mr *MockFetcherMockRecorder) GetBlockTxs(arg0, arg1 any) *MockFetcherGetBlockTxsCall
- func (mr *MockFetcherMockRecorder) GetBlocks(arg0, arg1 any) *MockFetcherGetBlocksCall
- func (mr *MockFetcherMockRecorder) GetPoetProof(arg0, arg1 any) *MockFetcherGetPoetProofCall
- func (mr *MockFetcherMockRecorder) GetProposalTxs(arg0, arg1 any) *MockFetcherGetProposalTxsCall
- func (mr *MockFetcherMockRecorder) GetProposals(arg0, arg1 any) *MockFetcherGetProposalsCall
- func (mr *MockFetcherMockRecorder) RegisterPeerHashes(peer, hashes any) *MockFetcherRegisterPeerHashesCall
- 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 MockMalfeasanceProofFetcher
- type MockMalfeasanceProofFetcherGetMalfeasanceProofsCall
- func (c *MockMalfeasanceProofFetcherGetMalfeasanceProofsCall) Do(f func(context.Context, []types.NodeID) error) *MockMalfeasanceProofFetcherGetMalfeasanceProofsCall
- func (c *MockMalfeasanceProofFetcherGetMalfeasanceProofsCall) DoAndReturn(f func(context.Context, []types.NodeID) error) *MockMalfeasanceProofFetcherGetMalfeasanceProofsCall
- func (c *MockMalfeasanceProofFetcherGetMalfeasanceProofsCall) Return(arg0 error) *MockMalfeasanceProofFetcherGetMalfeasanceProofsCall
- type MockMalfeasanceProofFetcherMockRecorder
- type MockPeerTracker
- type MockPeerTrackerMockRecorder
- type MockPeerTrackerRegisterPeerHashesCall
- func (c *MockPeerTrackerRegisterPeerHashesCall) Do(f func(p2p.Peer, []types.Hash32)) *MockPeerTrackerRegisterPeerHashesCall
- func (c *MockPeerTrackerRegisterPeerHashesCall) DoAndReturn(f func(p2p.Peer, []types.Hash32)) *MockPeerTrackerRegisterPeerHashesCall
- func (c *MockPeerTrackerRegisterPeerHashesCall) Return() *MockPeerTrackerRegisterPeerHashesCall
- type MockPoetProofFetcher
- type MockPoetProofFetcherGetPoetProofCall
- func (c *MockPoetProofFetcherGetPoetProofCall) Do(f func(context.Context, types.Hash32) error) *MockPoetProofFetcherGetPoetProofCall
- func (c *MockPoetProofFetcherGetPoetProofCall) DoAndReturn(f func(context.Context, types.Hash32) error) *MockPoetProofFetcherGetPoetProofCall
- func (c *MockPoetProofFetcherGetPoetProofCall) Return(arg0 error) *MockPoetProofFetcherGetPoetProofCall
- type MockPoetProofFetcherMockRecorder
- type MockProposalFetcher
- type MockProposalFetcherGetProposalsCall
- func (c *MockProposalFetcherGetProposalsCall) Do(f func(context.Context, []types.ProposalID) error) *MockProposalFetcherGetProposalsCall
- func (c *MockProposalFetcherGetProposalsCall) DoAndReturn(f func(context.Context, []types.ProposalID) error) *MockProposalFetcherGetProposalsCall
- func (c *MockProposalFetcherGetProposalsCall) Return(arg0 error) *MockProposalFetcherGetProposalsCall
- type MockProposalFetcherMockRecorder
- type MockSyncStateProvider
- type MockSyncStateProviderIsBeaconSyncedCall
- func (c *MockSyncStateProviderIsBeaconSyncedCall) Do(f func(types.EpochID) bool) *MockSyncStateProviderIsBeaconSyncedCall
- func (c *MockSyncStateProviderIsBeaconSyncedCall) DoAndReturn(f func(types.EpochID) bool) *MockSyncStateProviderIsBeaconSyncedCall
- func (c *MockSyncStateProviderIsBeaconSyncedCall) Return(arg0 bool) *MockSyncStateProviderIsBeaconSyncedCall
- type MockSyncStateProviderIsSyncedCall
- func (c *MockSyncStateProviderIsSyncedCall) Do(f func(context.Context) bool) *MockSyncStateProviderIsSyncedCall
- func (c *MockSyncStateProviderIsSyncedCall) DoAndReturn(f func(context.Context) bool) *MockSyncStateProviderIsSyncedCall
- func (c *MockSyncStateProviderIsSyncedCall) Return(arg0 bool) *MockSyncStateProviderIsSyncedCall
- type MockSyncStateProviderMockRecorder
- type MockTortoise
- func (m *MockTortoise) EXPECT() *MockTortoiseMockRecorder
- func (m *MockTortoise) GetMissingActiveSet(arg0 types.EpochID, arg1 []types.ATXID) []types.ATXID
- func (m *MockTortoise) LatestComplete() types.LayerID
- func (m *MockTortoise) OnApplied(arg0 types.LayerID, arg1 types.Hash32) bool
- func (m *MockTortoise) OnAtx(arg0 types.EpochID, arg1 types.ATXID, arg2 *atxsdata.ATX)
- func (m *MockTortoise) OnBlock(arg0 types.BlockHeader)
- func (m *MockTortoise) OnHareOutput(arg0 types.LayerID, arg1 types.BlockID)
- func (m *MockTortoise) OnMalfeasance(arg0 types.NodeID)
- func (m *MockTortoise) OnWeakCoin(arg0 types.LayerID, arg1 bool)
- func (m *MockTortoise) TallyVotes(arg0 context.Context, arg1 types.LayerID)
- func (m *MockTortoise) Updates() []result.Layer
- type MockTortoiseGetMissingActiveSetCall
- func (c *MockTortoiseGetMissingActiveSetCall) Do(f func(types.EpochID, []types.ATXID) []types.ATXID) *MockTortoiseGetMissingActiveSetCall
- func (c *MockTortoiseGetMissingActiveSetCall) DoAndReturn(f func(types.EpochID, []types.ATXID) []types.ATXID) *MockTortoiseGetMissingActiveSetCall
- func (c *MockTortoiseGetMissingActiveSetCall) Return(arg0 []types.ATXID) *MockTortoiseGetMissingActiveSetCall
- type MockTortoiseLatestCompleteCall
- func (c *MockTortoiseLatestCompleteCall) Do(f func() types.LayerID) *MockTortoiseLatestCompleteCall
- func (c *MockTortoiseLatestCompleteCall) DoAndReturn(f func() types.LayerID) *MockTortoiseLatestCompleteCall
- func (c *MockTortoiseLatestCompleteCall) Return(arg0 types.LayerID) *MockTortoiseLatestCompleteCall
- type MockTortoiseMockRecorder
- func (mr *MockTortoiseMockRecorder) GetMissingActiveSet(arg0, arg1 any) *MockTortoiseGetMissingActiveSetCall
- func (mr *MockTortoiseMockRecorder) LatestComplete() *MockTortoiseLatestCompleteCall
- func (mr *MockTortoiseMockRecorder) OnApplied(arg0, arg1 any) *MockTortoiseOnAppliedCall
- func (mr *MockTortoiseMockRecorder) OnAtx(arg0, arg1, arg2 any) *MockTortoiseOnAtxCall
- func (mr *MockTortoiseMockRecorder) OnBlock(arg0 any) *MockTortoiseOnBlockCall
- func (mr *MockTortoiseMockRecorder) OnHareOutput(arg0, arg1 any) *MockTortoiseOnHareOutputCall
- func (mr *MockTortoiseMockRecorder) OnMalfeasance(arg0 any) *MockTortoiseOnMalfeasanceCall
- func (mr *MockTortoiseMockRecorder) OnWeakCoin(arg0, arg1 any) *MockTortoiseOnWeakCoinCall
- func (mr *MockTortoiseMockRecorder) TallyVotes(arg0, arg1 any) *MockTortoiseTallyVotesCall
- func (mr *MockTortoiseMockRecorder) Updates() *MockTortoiseUpdatesCall
- type MockTortoiseOnAppliedCall
- func (c *MockTortoiseOnAppliedCall) Do(f func(types.LayerID, types.Hash32) bool) *MockTortoiseOnAppliedCall
- func (c *MockTortoiseOnAppliedCall) DoAndReturn(f func(types.LayerID, types.Hash32) bool) *MockTortoiseOnAppliedCall
- func (c *MockTortoiseOnAppliedCall) Return(arg0 bool) *MockTortoiseOnAppliedCall
- type MockTortoiseOnAtxCall
- type MockTortoiseOnBlockCall
- type MockTortoiseOnHareOutputCall
- func (c *MockTortoiseOnHareOutputCall) Do(f func(types.LayerID, types.BlockID)) *MockTortoiseOnHareOutputCall
- func (c *MockTortoiseOnHareOutputCall) DoAndReturn(f func(types.LayerID, types.BlockID)) *MockTortoiseOnHareOutputCall
- func (c *MockTortoiseOnHareOutputCall) Return() *MockTortoiseOnHareOutputCall
- type MockTortoiseOnMalfeasanceCall
- type MockTortoiseOnWeakCoinCall
- type MockTortoiseTallyVotesCall
- type MockTortoiseUpdatesCall
- type MockTxFetcher
- type MockTxFetcherGetBlockTxsCall
- func (c *MockTxFetcherGetBlockTxsCall) Do(f func(context.Context, []types.TransactionID) error) *MockTxFetcherGetBlockTxsCall
- func (c *MockTxFetcherGetBlockTxsCall) DoAndReturn(f func(context.Context, []types.TransactionID) error) *MockTxFetcherGetBlockTxsCall
- func (c *MockTxFetcherGetBlockTxsCall) Return(arg0 error) *MockTxFetcherGetBlockTxsCall
- type MockTxFetcherGetProposalTxsCall
- func (c *MockTxFetcherGetProposalTxsCall) Do(f func(context.Context, []types.TransactionID) error) *MockTxFetcherGetProposalTxsCall
- func (c *MockTxFetcherGetProposalTxsCall) DoAndReturn(f func(context.Context, []types.TransactionID) error) *MockTxFetcherGetProposalTxsCall
- func (c *MockTxFetcherGetProposalTxsCall) Return(arg0 error) *MockTxFetcherGetProposalTxsCall
- type MockTxFetcherMockRecorder
- type MockValidationRequest
- type MockValidationRequestMockRecorder
- type MockValidationRequestParseCall
- func (c *MockValidationRequestParseCall) Do(f func() (*types.TxHeader, error)) *MockValidationRequestParseCall
- func (c *MockValidationRequestParseCall) DoAndReturn(f func() (*types.TxHeader, error)) *MockValidationRequestParseCall
- func (c *MockValidationRequestParseCall) Return(arg0 *types.TxHeader, arg1 error) *MockValidationRequestParseCall
- type MockValidationRequestVerifyCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockActiveSetFetcher ¶ added in v1.1.5
type MockActiveSetFetcher struct {
// contains filtered or unexported fields
}
MockActiveSetFetcher is a mock of ActiveSetFetcher interface.
func NewMockActiveSetFetcher ¶ added in v1.1.5
func NewMockActiveSetFetcher(ctrl *gomock.Controller) *MockActiveSetFetcher
NewMockActiveSetFetcher creates a new mock instance.
func (*MockActiveSetFetcher) EXPECT ¶ added in v1.1.5
func (m *MockActiveSetFetcher) EXPECT() *MockActiveSetFetcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockActiveSetFetcher) GetActiveSet ¶ added in v1.1.5
GetActiveSet mocks base method.
type MockActiveSetFetcherGetActiveSetCall ¶ added in v1.4.0
MockActiveSetFetcherGetActiveSetCall wrap *gomock.Call
func (*MockActiveSetFetcherGetActiveSetCall) Do ¶ added in v1.4.0
func (c *MockActiveSetFetcherGetActiveSetCall) Do(f func(context.Context, types.Hash32) error) *MockActiveSetFetcherGetActiveSetCall
Do rewrite *gomock.Call.Do
func (*MockActiveSetFetcherGetActiveSetCall) DoAndReturn ¶ added in v1.4.0
func (c *MockActiveSetFetcherGetActiveSetCall) DoAndReturn(f func(context.Context, types.Hash32) error) *MockActiveSetFetcherGetActiveSetCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockActiveSetFetcherGetActiveSetCall) Return ¶ added in v1.4.0
func (c *MockActiveSetFetcherGetActiveSetCall) Return(arg0 error) *MockActiveSetFetcherGetActiveSetCall
Return rewrite *gomock.Call.Return
type MockActiveSetFetcherMockRecorder ¶ added in v1.1.5
type MockActiveSetFetcherMockRecorder struct {
// contains filtered or unexported fields
}
MockActiveSetFetcherMockRecorder is the mock recorder for MockActiveSetFetcher.
func (*MockActiveSetFetcherMockRecorder) GetActiveSet ¶ added in v1.1.5
func (mr *MockActiveSetFetcherMockRecorder) GetActiveSet(arg0, arg1 any) *MockActiveSetFetcherGetActiveSetCall
GetActiveSet indicates an expected call of GetActiveSet.
type MockAtxFetcher ¶
type MockAtxFetcher struct {
// contains filtered or unexported fields
}
MockAtxFetcher is a mock of AtxFetcher interface.
func NewMockAtxFetcher ¶
func NewMockAtxFetcher(ctrl *gomock.Controller) *MockAtxFetcher
NewMockAtxFetcher creates a new mock instance.
func (*MockAtxFetcher) EXPECT ¶
func (m *MockAtxFetcher) EXPECT() *MockAtxFetcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockAtxFetcherGetAtxsCall ¶ added in v1.4.0
MockAtxFetcherGetAtxsCall wrap *gomock.Call
func (*MockAtxFetcherGetAtxsCall) Do ¶ added in v1.4.0
func (c *MockAtxFetcherGetAtxsCall) Do(f func(context.Context, []types.ATXID, ...system.GetAtxOpt) error) *MockAtxFetcherGetAtxsCall
Do rewrite *gomock.Call.Do
func (*MockAtxFetcherGetAtxsCall) DoAndReturn ¶ added in v1.4.0
func (c *MockAtxFetcherGetAtxsCall) DoAndReturn(f func(context.Context, []types.ATXID, ...system.GetAtxOpt) error) *MockAtxFetcherGetAtxsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAtxFetcherGetAtxsCall) Return ¶ added in v1.4.0
func (c *MockAtxFetcherGetAtxsCall) Return(arg0 error) *MockAtxFetcherGetAtxsCall
Return rewrite *gomock.Call.Return
type MockAtxFetcherMockRecorder ¶
type MockAtxFetcherMockRecorder struct {
// contains filtered or unexported fields
}
MockAtxFetcherMockRecorder is the mock recorder for MockAtxFetcher.
func (*MockAtxFetcherMockRecorder) GetAtxs ¶
func (mr *MockAtxFetcherMockRecorder) GetAtxs(arg0, arg1 any, arg2 ...any) *MockAtxFetcherGetAtxsCall
GetAtxs indicates an expected call of GetAtxs.
type MockBallotFetcher ¶
type MockBallotFetcher struct {
// contains filtered or unexported fields
}
MockBallotFetcher is a mock of BallotFetcher interface.
func NewMockBallotFetcher ¶
func NewMockBallotFetcher(ctrl *gomock.Controller) *MockBallotFetcher
NewMockBallotFetcher creates a new mock instance.
func (*MockBallotFetcher) EXPECT ¶
func (m *MockBallotFetcher) EXPECT() *MockBallotFetcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBallotFetcher) GetBallots ¶
GetBallots mocks base method.
type MockBallotFetcherGetBallotsCall ¶ added in v1.4.0
MockBallotFetcherGetBallotsCall wrap *gomock.Call
func (*MockBallotFetcherGetBallotsCall) Do ¶ added in v1.4.0
func (c *MockBallotFetcherGetBallotsCall) Do(f func(context.Context, []types.BallotID) error) *MockBallotFetcherGetBallotsCall
Do rewrite *gomock.Call.Do
func (*MockBallotFetcherGetBallotsCall) DoAndReturn ¶ added in v1.4.0
func (c *MockBallotFetcherGetBallotsCall) DoAndReturn(f func(context.Context, []types.BallotID) error) *MockBallotFetcherGetBallotsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBallotFetcherGetBallotsCall) Return ¶ added in v1.4.0
func (c *MockBallotFetcherGetBallotsCall) Return(arg0 error) *MockBallotFetcherGetBallotsCall
Return rewrite *gomock.Call.Return
type MockBallotFetcherMockRecorder ¶
type MockBallotFetcherMockRecorder struct {
// contains filtered or unexported fields
}
MockBallotFetcherMockRecorder is the mock recorder for MockBallotFetcher.
func (*MockBallotFetcherMockRecorder) GetBallots ¶
func (mr *MockBallotFetcherMockRecorder) GetBallots(arg0, arg1 any) *MockBallotFetcherGetBallotsCall
GetBallots indicates an expected call of GetBallots.
type MockBeaconCollector ¶
type MockBeaconCollector struct {
// contains filtered or unexported fields
}
MockBeaconCollector is a mock of BeaconCollector interface.
func NewMockBeaconCollector ¶
func NewMockBeaconCollector(ctrl *gomock.Controller) *MockBeaconCollector
NewMockBeaconCollector creates a new mock instance.
func (*MockBeaconCollector) EXPECT ¶
func (m *MockBeaconCollector) EXPECT() *MockBeaconCollectorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockBeaconCollectorMockRecorder ¶
type MockBeaconCollectorMockRecorder struct {
// contains filtered or unexported fields
}
MockBeaconCollectorMockRecorder is the mock recorder for MockBeaconCollector.
func (*MockBeaconCollectorMockRecorder) ReportBeaconFromBallot ¶
func (mr *MockBeaconCollectorMockRecorder) ReportBeaconFromBallot(arg0, arg1, arg2, arg3 any) *MockBeaconCollectorReportBeaconFromBallotCall
ReportBeaconFromBallot indicates an expected call of ReportBeaconFromBallot.
type MockBeaconCollectorReportBeaconFromBallotCall ¶ added in v1.4.0
MockBeaconCollectorReportBeaconFromBallotCall wrap *gomock.Call
func (*MockBeaconCollectorReportBeaconFromBallotCall) Do ¶ added in v1.4.0
func (c *MockBeaconCollectorReportBeaconFromBallotCall) Do(f func(types.EpochID, *types.Ballot, types.Beacon, fixed.Fixed)) *MockBeaconCollectorReportBeaconFromBallotCall
Do rewrite *gomock.Call.Do
func (*MockBeaconCollectorReportBeaconFromBallotCall) DoAndReturn ¶ added in v1.4.0
func (c *MockBeaconCollectorReportBeaconFromBallotCall) DoAndReturn(f func(types.EpochID, *types.Ballot, types.Beacon, fixed.Fixed)) *MockBeaconCollectorReportBeaconFromBallotCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBeaconCollectorReportBeaconFromBallotCall) Return ¶ added in v1.4.0
func (c *MockBeaconCollectorReportBeaconFromBallotCall) Return() *MockBeaconCollectorReportBeaconFromBallotCall
Return rewrite *gomock.Call.Return
type MockBeaconGetter ¶
type MockBeaconGetter struct {
// contains filtered or unexported fields
}
MockBeaconGetter is a mock of BeaconGetter interface.
func NewMockBeaconGetter ¶
func NewMockBeaconGetter(ctrl *gomock.Controller) *MockBeaconGetter
NewMockBeaconGetter creates a new mock instance.
func (*MockBeaconGetter) EXPECT ¶
func (m *MockBeaconGetter) EXPECT() *MockBeaconGetterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockBeaconGetterGetBeaconCall ¶ added in v1.4.0
MockBeaconGetterGetBeaconCall wrap *gomock.Call
func (*MockBeaconGetterGetBeaconCall) Do ¶ added in v1.4.0
func (c *MockBeaconGetterGetBeaconCall) Do(f func(types.EpochID) (types.Beacon, error)) *MockBeaconGetterGetBeaconCall
Do rewrite *gomock.Call.Do
func (*MockBeaconGetterGetBeaconCall) DoAndReturn ¶ added in v1.4.0
func (c *MockBeaconGetterGetBeaconCall) DoAndReturn(f func(types.EpochID) (types.Beacon, error)) *MockBeaconGetterGetBeaconCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBeaconGetterGetBeaconCall) Return ¶ added in v1.4.0
func (c *MockBeaconGetterGetBeaconCall) Return(arg0 types.Beacon, arg1 error) *MockBeaconGetterGetBeaconCall
Return rewrite *gomock.Call.Return
type MockBeaconGetterMockRecorder ¶
type MockBeaconGetterMockRecorder struct {
// contains filtered or unexported fields
}
MockBeaconGetterMockRecorder is the mock recorder for MockBeaconGetter.
func (*MockBeaconGetterMockRecorder) GetBeacon ¶
func (mr *MockBeaconGetterMockRecorder) GetBeacon(arg0 any) *MockBeaconGetterGetBeaconCall
GetBeacon indicates an expected call of GetBeacon.
type MockBlockFetcher ¶
type MockBlockFetcher struct {
// contains filtered or unexported fields
}
MockBlockFetcher is a mock of BlockFetcher interface.
func NewMockBlockFetcher ¶
func NewMockBlockFetcher(ctrl *gomock.Controller) *MockBlockFetcher
NewMockBlockFetcher creates a new mock instance.
func (*MockBlockFetcher) EXPECT ¶
func (m *MockBlockFetcher) EXPECT() *MockBlockFetcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockBlockFetcherGetBlocksCall ¶ added in v1.4.0
MockBlockFetcherGetBlocksCall wrap *gomock.Call
func (*MockBlockFetcherGetBlocksCall) Do ¶ added in v1.4.0
func (c *MockBlockFetcherGetBlocksCall) Do(f func(context.Context, []types.BlockID) error) *MockBlockFetcherGetBlocksCall
Do rewrite *gomock.Call.Do
func (*MockBlockFetcherGetBlocksCall) DoAndReturn ¶ added in v1.4.0
func (c *MockBlockFetcherGetBlocksCall) DoAndReturn(f func(context.Context, []types.BlockID) error) *MockBlockFetcherGetBlocksCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBlockFetcherGetBlocksCall) Return ¶ added in v1.4.0
func (c *MockBlockFetcherGetBlocksCall) Return(arg0 error) *MockBlockFetcherGetBlocksCall
Return rewrite *gomock.Call.Return
type MockBlockFetcherMockRecorder ¶
type MockBlockFetcherMockRecorder struct {
// contains filtered or unexported fields
}
MockBlockFetcherMockRecorder is the mock recorder for MockBlockFetcher.
func (*MockBlockFetcherMockRecorder) GetBlocks ¶
func (mr *MockBlockFetcherMockRecorder) GetBlocks(arg0, arg1 any) *MockBlockFetcherGetBlocksCall
GetBlocks indicates an expected call of GetBlocks.
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) GetActiveSet ¶ added in v1.1.5
GetActiveSet mocks base method.
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) GetBlockTxs ¶
func (m *MockFetcher) GetBlockTxs(arg0 context.Context, arg1 []types.TransactionID) error
GetBlockTxs mocks base method.
func (*MockFetcher) GetPoetProof ¶
GetPoetProof mocks base method.
func (*MockFetcher) GetProposalTxs ¶
func (m *MockFetcher) GetProposalTxs(arg0 context.Context, arg1 []types.TransactionID) error
GetProposalTxs mocks base method.
func (*MockFetcher) GetProposals ¶
func (m *MockFetcher) GetProposals(arg0 context.Context, arg1 []types.ProposalID) error
GetProposals mocks base method.
func (*MockFetcher) RegisterPeerHashes ¶
func (m *MockFetcher) RegisterPeerHashes(peer p2p.Peer, hashes []types.Hash32)
RegisterPeerHashes mocks base method.
type MockFetcherGetActiveSetCall ¶ added in v1.4.0
MockFetcherGetActiveSetCall wrap *gomock.Call
func (*MockFetcherGetActiveSetCall) Do ¶ added in v1.4.0
func (c *MockFetcherGetActiveSetCall) Do(f func(context.Context, types.Hash32) error) *MockFetcherGetActiveSetCall
Do rewrite *gomock.Call.Do
func (*MockFetcherGetActiveSetCall) DoAndReturn ¶ added in v1.4.0
func (c *MockFetcherGetActiveSetCall) DoAndReturn(f func(context.Context, types.Hash32) error) *MockFetcherGetActiveSetCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockFetcherGetActiveSetCall) Return ¶ added in v1.4.0
func (c *MockFetcherGetActiveSetCall) Return(arg0 error) *MockFetcherGetActiveSetCall
Return rewrite *gomock.Call.Return
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 MockFetcherGetBlockTxsCall ¶ added in v1.4.0
MockFetcherGetBlockTxsCall wrap *gomock.Call
func (*MockFetcherGetBlockTxsCall) Do ¶ added in v1.4.0
func (c *MockFetcherGetBlockTxsCall) Do(f func(context.Context, []types.TransactionID) error) *MockFetcherGetBlockTxsCall
Do rewrite *gomock.Call.Do
func (*MockFetcherGetBlockTxsCall) DoAndReturn ¶ added in v1.4.0
func (c *MockFetcherGetBlockTxsCall) DoAndReturn(f func(context.Context, []types.TransactionID) error) *MockFetcherGetBlockTxsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockFetcherGetBlockTxsCall) Return ¶ added in v1.4.0
func (c *MockFetcherGetBlockTxsCall) Return(arg0 error) *MockFetcherGetBlockTxsCall
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 MockFetcherGetPoetProofCall ¶ added in v1.4.0
MockFetcherGetPoetProofCall wrap *gomock.Call
func (*MockFetcherGetPoetProofCall) Do ¶ added in v1.4.0
func (c *MockFetcherGetPoetProofCall) Do(f func(context.Context, types.Hash32) error) *MockFetcherGetPoetProofCall
Do rewrite *gomock.Call.Do
func (*MockFetcherGetPoetProofCall) DoAndReturn ¶ added in v1.4.0
func (c *MockFetcherGetPoetProofCall) DoAndReturn(f func(context.Context, types.Hash32) error) *MockFetcherGetPoetProofCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockFetcherGetPoetProofCall) Return ¶ added in v1.4.0
func (c *MockFetcherGetPoetProofCall) Return(arg0 error) *MockFetcherGetPoetProofCall
Return rewrite *gomock.Call.Return
type MockFetcherGetProposalTxsCall ¶ added in v1.4.0
MockFetcherGetProposalTxsCall wrap *gomock.Call
func (*MockFetcherGetProposalTxsCall) Do ¶ added in v1.4.0
func (c *MockFetcherGetProposalTxsCall) Do(f func(context.Context, []types.TransactionID) error) *MockFetcherGetProposalTxsCall
Do rewrite *gomock.Call.Do
func (*MockFetcherGetProposalTxsCall) DoAndReturn ¶ added in v1.4.0
func (c *MockFetcherGetProposalTxsCall) DoAndReturn(f func(context.Context, []types.TransactionID) error) *MockFetcherGetProposalTxsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockFetcherGetProposalTxsCall) Return ¶ added in v1.4.0
func (c *MockFetcherGetProposalTxsCall) Return(arg0 error) *MockFetcherGetProposalTxsCall
Return rewrite *gomock.Call.Return
type MockFetcherGetProposalsCall ¶ added in v1.4.0
MockFetcherGetProposalsCall wrap *gomock.Call
func (*MockFetcherGetProposalsCall) Do ¶ added in v1.4.0
func (c *MockFetcherGetProposalsCall) Do(f func(context.Context, []types.ProposalID) error) *MockFetcherGetProposalsCall
Do rewrite *gomock.Call.Do
func (*MockFetcherGetProposalsCall) DoAndReturn ¶ added in v1.4.0
func (c *MockFetcherGetProposalsCall) DoAndReturn(f func(context.Context, []types.ProposalID) error) *MockFetcherGetProposalsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockFetcherGetProposalsCall) Return ¶ added in v1.4.0
func (c *MockFetcherGetProposalsCall) Return(arg0 error) *MockFetcherGetProposalsCall
Return rewrite *gomock.Call.Return
type MockFetcherMockRecorder ¶
type MockFetcherMockRecorder struct {
// contains filtered or unexported fields
}
MockFetcherMockRecorder is the mock recorder for MockFetcher.
func (*MockFetcherMockRecorder) GetActiveSet ¶ added in v1.1.5
func (mr *MockFetcherMockRecorder) GetActiveSet(arg0, arg1 any) *MockFetcherGetActiveSetCall
GetActiveSet indicates an expected call of GetActiveSet.
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) GetBlockTxs ¶
func (mr *MockFetcherMockRecorder) GetBlockTxs(arg0, arg1 any) *MockFetcherGetBlockTxsCall
GetBlockTxs indicates an expected call of GetBlockTxs.
func (*MockFetcherMockRecorder) GetBlocks ¶
func (mr *MockFetcherMockRecorder) GetBlocks(arg0, arg1 any) *MockFetcherGetBlocksCall
GetBlocks indicates an expected call of GetBlocks.
func (*MockFetcherMockRecorder) GetPoetProof ¶
func (mr *MockFetcherMockRecorder) GetPoetProof(arg0, arg1 any) *MockFetcherGetPoetProofCall
GetPoetProof indicates an expected call of GetPoetProof.
func (*MockFetcherMockRecorder) GetProposalTxs ¶
func (mr *MockFetcherMockRecorder) GetProposalTxs(arg0, arg1 any) *MockFetcherGetProposalTxsCall
GetProposalTxs indicates an expected call of GetProposalTxs.
func (*MockFetcherMockRecorder) GetProposals ¶
func (mr *MockFetcherMockRecorder) GetProposals(arg0, arg1 any) *MockFetcherGetProposalsCall
GetProposals indicates an expected call of GetProposals.
func (*MockFetcherMockRecorder) RegisterPeerHashes ¶
func (mr *MockFetcherMockRecorder) RegisterPeerHashes(peer, hashes any) *MockFetcherRegisterPeerHashesCall
RegisterPeerHashes indicates an expected call of RegisterPeerHashes.
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 MockMalfeasanceProofFetcher ¶ added in v1.4.3
type MockMalfeasanceProofFetcher struct {
// contains filtered or unexported fields
}
MockMalfeasanceProofFetcher is a mock of MalfeasanceProofFetcher interface.
func NewMockMalfeasanceProofFetcher ¶ added in v1.4.3
func NewMockMalfeasanceProofFetcher(ctrl *gomock.Controller) *MockMalfeasanceProofFetcher
NewMockMalfeasanceProofFetcher creates a new mock instance.
func (*MockMalfeasanceProofFetcher) EXPECT ¶ added in v1.4.3
func (m *MockMalfeasanceProofFetcher) EXPECT() *MockMalfeasanceProofFetcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMalfeasanceProofFetcher) GetMalfeasanceProofs ¶ added in v1.4.3
func (m *MockMalfeasanceProofFetcher) GetMalfeasanceProofs(arg0 context.Context, arg1 []types.NodeID) error
GetMalfeasanceProofs mocks base method.
type MockMalfeasanceProofFetcherGetMalfeasanceProofsCall ¶ added in v1.4.3
MockMalfeasanceProofFetcherGetMalfeasanceProofsCall wrap *gomock.Call
func (*MockMalfeasanceProofFetcherGetMalfeasanceProofsCall) Do ¶ added in v1.4.3
func (c *MockMalfeasanceProofFetcherGetMalfeasanceProofsCall) Do(f func(context.Context, []types.NodeID) error) *MockMalfeasanceProofFetcherGetMalfeasanceProofsCall
Do rewrite *gomock.Call.Do
func (*MockMalfeasanceProofFetcherGetMalfeasanceProofsCall) DoAndReturn ¶ added in v1.4.3
func (c *MockMalfeasanceProofFetcherGetMalfeasanceProofsCall) DoAndReturn(f func(context.Context, []types.NodeID) error) *MockMalfeasanceProofFetcherGetMalfeasanceProofsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMalfeasanceProofFetcherGetMalfeasanceProofsCall) Return ¶ added in v1.4.3
func (c *MockMalfeasanceProofFetcherGetMalfeasanceProofsCall) Return(arg0 error) *MockMalfeasanceProofFetcherGetMalfeasanceProofsCall
Return rewrite *gomock.Call.Return
type MockMalfeasanceProofFetcherMockRecorder ¶ added in v1.4.3
type MockMalfeasanceProofFetcherMockRecorder struct {
// contains filtered or unexported fields
}
MockMalfeasanceProofFetcherMockRecorder is the mock recorder for MockMalfeasanceProofFetcher.
func (*MockMalfeasanceProofFetcherMockRecorder) GetMalfeasanceProofs ¶ added in v1.4.3
func (mr *MockMalfeasanceProofFetcherMockRecorder) GetMalfeasanceProofs(arg0, arg1 any) *MockMalfeasanceProofFetcherGetMalfeasanceProofsCall
GetMalfeasanceProofs indicates an expected call of GetMalfeasanceProofs.
type MockPeerTracker ¶
type MockPeerTracker struct {
// contains filtered or unexported fields
}
MockPeerTracker is a mock of PeerTracker interface.
func NewMockPeerTracker ¶
func NewMockPeerTracker(ctrl *gomock.Controller) *MockPeerTracker
NewMockPeerTracker creates a new mock instance.
func (*MockPeerTracker) EXPECT ¶
func (m *MockPeerTracker) EXPECT() *MockPeerTrackerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPeerTracker) RegisterPeerHashes ¶
func (m *MockPeerTracker) RegisterPeerHashes(peer p2p.Peer, hashes []types.Hash32)
RegisterPeerHashes mocks base method.
type MockPeerTrackerMockRecorder ¶
type MockPeerTrackerMockRecorder struct {
// contains filtered or unexported fields
}
MockPeerTrackerMockRecorder is the mock recorder for MockPeerTracker.
func (*MockPeerTrackerMockRecorder) RegisterPeerHashes ¶
func (mr *MockPeerTrackerMockRecorder) RegisterPeerHashes(peer, hashes any) *MockPeerTrackerRegisterPeerHashesCall
RegisterPeerHashes indicates an expected call of RegisterPeerHashes.
type MockPeerTrackerRegisterPeerHashesCall ¶ added in v1.4.0
MockPeerTrackerRegisterPeerHashesCall wrap *gomock.Call
func (*MockPeerTrackerRegisterPeerHashesCall) Do ¶ added in v1.4.0
func (c *MockPeerTrackerRegisterPeerHashesCall) Do(f func(p2p.Peer, []types.Hash32)) *MockPeerTrackerRegisterPeerHashesCall
Do rewrite *gomock.Call.Do
func (*MockPeerTrackerRegisterPeerHashesCall) DoAndReturn ¶ added in v1.4.0
func (c *MockPeerTrackerRegisterPeerHashesCall) DoAndReturn(f func(p2p.Peer, []types.Hash32)) *MockPeerTrackerRegisterPeerHashesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockPeerTrackerRegisterPeerHashesCall) Return ¶ added in v1.4.0
func (c *MockPeerTrackerRegisterPeerHashesCall) Return() *MockPeerTrackerRegisterPeerHashesCall
Return rewrite *gomock.Call.Return
type MockPoetProofFetcher ¶
type MockPoetProofFetcher struct {
// contains filtered or unexported fields
}
MockPoetProofFetcher is a mock of PoetProofFetcher interface.
func NewMockPoetProofFetcher ¶
func NewMockPoetProofFetcher(ctrl *gomock.Controller) *MockPoetProofFetcher
NewMockPoetProofFetcher creates a new mock instance.
func (*MockPoetProofFetcher) EXPECT ¶
func (m *MockPoetProofFetcher) EXPECT() *MockPoetProofFetcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPoetProofFetcher) GetPoetProof ¶
GetPoetProof mocks base method.
type MockPoetProofFetcherGetPoetProofCall ¶ added in v1.4.0
MockPoetProofFetcherGetPoetProofCall wrap *gomock.Call
func (*MockPoetProofFetcherGetPoetProofCall) Do ¶ added in v1.4.0
func (c *MockPoetProofFetcherGetPoetProofCall) Do(f func(context.Context, types.Hash32) error) *MockPoetProofFetcherGetPoetProofCall
Do rewrite *gomock.Call.Do
func (*MockPoetProofFetcherGetPoetProofCall) DoAndReturn ¶ added in v1.4.0
func (c *MockPoetProofFetcherGetPoetProofCall) DoAndReturn(f func(context.Context, types.Hash32) error) *MockPoetProofFetcherGetPoetProofCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockPoetProofFetcherGetPoetProofCall) Return ¶ added in v1.4.0
func (c *MockPoetProofFetcherGetPoetProofCall) Return(arg0 error) *MockPoetProofFetcherGetPoetProofCall
Return rewrite *gomock.Call.Return
type MockPoetProofFetcherMockRecorder ¶
type MockPoetProofFetcherMockRecorder struct {
// contains filtered or unexported fields
}
MockPoetProofFetcherMockRecorder is the mock recorder for MockPoetProofFetcher.
func (*MockPoetProofFetcherMockRecorder) GetPoetProof ¶
func (mr *MockPoetProofFetcherMockRecorder) GetPoetProof(arg0, arg1 any) *MockPoetProofFetcherGetPoetProofCall
GetPoetProof indicates an expected call of GetPoetProof.
type MockProposalFetcher ¶
type MockProposalFetcher struct {
// contains filtered or unexported fields
}
MockProposalFetcher is a mock of ProposalFetcher interface.
func NewMockProposalFetcher ¶
func NewMockProposalFetcher(ctrl *gomock.Controller) *MockProposalFetcher
NewMockProposalFetcher creates a new mock instance.
func (*MockProposalFetcher) EXPECT ¶
func (m *MockProposalFetcher) EXPECT() *MockProposalFetcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProposalFetcher) GetProposals ¶
func (m *MockProposalFetcher) GetProposals(arg0 context.Context, arg1 []types.ProposalID) error
GetProposals mocks base method.
type MockProposalFetcherGetProposalsCall ¶ added in v1.4.0
MockProposalFetcherGetProposalsCall wrap *gomock.Call
func (*MockProposalFetcherGetProposalsCall) Do ¶ added in v1.4.0
func (c *MockProposalFetcherGetProposalsCall) Do(f func(context.Context, []types.ProposalID) error) *MockProposalFetcherGetProposalsCall
Do rewrite *gomock.Call.Do
func (*MockProposalFetcherGetProposalsCall) DoAndReturn ¶ added in v1.4.0
func (c *MockProposalFetcherGetProposalsCall) DoAndReturn(f func(context.Context, []types.ProposalID) error) *MockProposalFetcherGetProposalsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockProposalFetcherGetProposalsCall) Return ¶ added in v1.4.0
func (c *MockProposalFetcherGetProposalsCall) Return(arg0 error) *MockProposalFetcherGetProposalsCall
Return rewrite *gomock.Call.Return
type MockProposalFetcherMockRecorder ¶
type MockProposalFetcherMockRecorder struct {
// contains filtered or unexported fields
}
MockProposalFetcherMockRecorder is the mock recorder for MockProposalFetcher.
func (*MockProposalFetcherMockRecorder) GetProposals ¶
func (mr *MockProposalFetcherMockRecorder) GetProposals(arg0, arg1 any) *MockProposalFetcherGetProposalsCall
GetProposals indicates an expected call of GetProposals.
type MockSyncStateProvider ¶
type MockSyncStateProvider struct {
// contains filtered or unexported fields
}
MockSyncStateProvider is a mock of SyncStateProvider interface.
func NewMockSyncStateProvider ¶
func NewMockSyncStateProvider(ctrl *gomock.Controller) *MockSyncStateProvider
NewMockSyncStateProvider creates a new mock instance.
func (*MockSyncStateProvider) EXPECT ¶
func (m *MockSyncStateProvider) EXPECT() *MockSyncStateProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSyncStateProvider) IsBeaconSynced ¶
func (m *MockSyncStateProvider) IsBeaconSynced(arg0 types.EpochID) bool
IsBeaconSynced mocks base method.
type MockSyncStateProviderIsBeaconSyncedCall ¶ added in v1.4.0
MockSyncStateProviderIsBeaconSyncedCall wrap *gomock.Call
func (*MockSyncStateProviderIsBeaconSyncedCall) Do ¶ added in v1.4.0
func (c *MockSyncStateProviderIsBeaconSyncedCall) Do(f func(types.EpochID) bool) *MockSyncStateProviderIsBeaconSyncedCall
Do rewrite *gomock.Call.Do
func (*MockSyncStateProviderIsBeaconSyncedCall) DoAndReturn ¶ added in v1.4.0
func (c *MockSyncStateProviderIsBeaconSyncedCall) DoAndReturn(f func(types.EpochID) bool) *MockSyncStateProviderIsBeaconSyncedCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockSyncStateProviderIsBeaconSyncedCall) Return ¶ added in v1.4.0
func (c *MockSyncStateProviderIsBeaconSyncedCall) Return(arg0 bool) *MockSyncStateProviderIsBeaconSyncedCall
Return rewrite *gomock.Call.Return
type MockSyncStateProviderIsSyncedCall ¶ added in v1.4.0
MockSyncStateProviderIsSyncedCall wrap *gomock.Call
func (*MockSyncStateProviderIsSyncedCall) Do ¶ added in v1.4.0
func (c *MockSyncStateProviderIsSyncedCall) Do(f func(context.Context) bool) *MockSyncStateProviderIsSyncedCall
Do rewrite *gomock.Call.Do
func (*MockSyncStateProviderIsSyncedCall) DoAndReturn ¶ added in v1.4.0
func (c *MockSyncStateProviderIsSyncedCall) DoAndReturn(f func(context.Context) bool) *MockSyncStateProviderIsSyncedCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockSyncStateProviderIsSyncedCall) Return ¶ added in v1.4.0
func (c *MockSyncStateProviderIsSyncedCall) Return(arg0 bool) *MockSyncStateProviderIsSyncedCall
Return rewrite *gomock.Call.Return
type MockSyncStateProviderMockRecorder ¶
type MockSyncStateProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockSyncStateProviderMockRecorder is the mock recorder for MockSyncStateProvider.
func (*MockSyncStateProviderMockRecorder) IsBeaconSynced ¶
func (mr *MockSyncStateProviderMockRecorder) IsBeaconSynced(arg0 any) *MockSyncStateProviderIsBeaconSyncedCall
IsBeaconSynced indicates an expected call of IsBeaconSynced.
func (*MockSyncStateProviderMockRecorder) IsSynced ¶
func (mr *MockSyncStateProviderMockRecorder) IsSynced(arg0 any) *MockSyncStateProviderIsSyncedCall
IsSynced indicates an expected call of IsSynced.
type MockTortoise ¶
type MockTortoise struct {
// contains filtered or unexported fields
}
MockTortoise is a mock of Tortoise interface.
func NewMockTortoise ¶
func NewMockTortoise(ctrl *gomock.Controller) *MockTortoise
NewMockTortoise creates a new mock instance.
func (*MockTortoise) EXPECT ¶
func (m *MockTortoise) EXPECT() *MockTortoiseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTortoise) GetMissingActiveSet ¶ added in v1.4.0
GetMissingActiveSet mocks base method.
func (*MockTortoise) LatestComplete ¶
func (m *MockTortoise) LatestComplete() types.LayerID
LatestComplete mocks base method.
func (*MockTortoise) OnBlock ¶
func (m *MockTortoise) OnBlock(arg0 types.BlockHeader)
OnBlock mocks base method.
func (*MockTortoise) OnHareOutput ¶
func (m *MockTortoise) OnHareOutput(arg0 types.LayerID, arg1 types.BlockID)
OnHareOutput mocks base method.
func (*MockTortoise) OnMalfeasance ¶
func (m *MockTortoise) OnMalfeasance(arg0 types.NodeID)
OnMalfeasance mocks base method.
func (*MockTortoise) OnWeakCoin ¶
func (m *MockTortoise) OnWeakCoin(arg0 types.LayerID, arg1 bool)
OnWeakCoin mocks base method.
func (*MockTortoise) TallyVotes ¶
func (m *MockTortoise) TallyVotes(arg0 context.Context, arg1 types.LayerID)
TallyVotes mocks base method.
func (*MockTortoise) Updates ¶
func (m *MockTortoise) Updates() []result.Layer
Updates mocks base method.
type MockTortoiseGetMissingActiveSetCall ¶ added in v1.4.0
MockTortoiseGetMissingActiveSetCall wrap *gomock.Call
func (*MockTortoiseGetMissingActiveSetCall) Do ¶ added in v1.4.0
func (c *MockTortoiseGetMissingActiveSetCall) Do(f func(types.EpochID, []types.ATXID) []types.ATXID) *MockTortoiseGetMissingActiveSetCall
Do rewrite *gomock.Call.Do
func (*MockTortoiseGetMissingActiveSetCall) DoAndReturn ¶ added in v1.4.0
func (c *MockTortoiseGetMissingActiveSetCall) DoAndReturn(f func(types.EpochID, []types.ATXID) []types.ATXID) *MockTortoiseGetMissingActiveSetCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTortoiseGetMissingActiveSetCall) Return ¶ added in v1.4.0
func (c *MockTortoiseGetMissingActiveSetCall) Return(arg0 []types.ATXID) *MockTortoiseGetMissingActiveSetCall
Return rewrite *gomock.Call.Return
type MockTortoiseLatestCompleteCall ¶ added in v1.4.0
MockTortoiseLatestCompleteCall wrap *gomock.Call
func (*MockTortoiseLatestCompleteCall) Do ¶ added in v1.4.0
func (c *MockTortoiseLatestCompleteCall) Do(f func() types.LayerID) *MockTortoiseLatestCompleteCall
Do rewrite *gomock.Call.Do
func (*MockTortoiseLatestCompleteCall) DoAndReturn ¶ added in v1.4.0
func (c *MockTortoiseLatestCompleteCall) DoAndReturn(f func() types.LayerID) *MockTortoiseLatestCompleteCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTortoiseLatestCompleteCall) Return ¶ added in v1.4.0
func (c *MockTortoiseLatestCompleteCall) Return(arg0 types.LayerID) *MockTortoiseLatestCompleteCall
Return rewrite *gomock.Call.Return
type MockTortoiseMockRecorder ¶
type MockTortoiseMockRecorder struct {
// contains filtered or unexported fields
}
MockTortoiseMockRecorder is the mock recorder for MockTortoise.
func (*MockTortoiseMockRecorder) GetMissingActiveSet ¶ added in v1.4.0
func (mr *MockTortoiseMockRecorder) GetMissingActiveSet(arg0, arg1 any) *MockTortoiseGetMissingActiveSetCall
GetMissingActiveSet indicates an expected call of GetMissingActiveSet.
func (*MockTortoiseMockRecorder) LatestComplete ¶
func (mr *MockTortoiseMockRecorder) LatestComplete() *MockTortoiseLatestCompleteCall
LatestComplete indicates an expected call of LatestComplete.
func (*MockTortoiseMockRecorder) OnApplied ¶ added in v1.2.2
func (mr *MockTortoiseMockRecorder) OnApplied(arg0, arg1 any) *MockTortoiseOnAppliedCall
OnApplied indicates an expected call of OnApplied.
func (*MockTortoiseMockRecorder) OnAtx ¶
func (mr *MockTortoiseMockRecorder) OnAtx(arg0, arg1, arg2 any) *MockTortoiseOnAtxCall
OnAtx indicates an expected call of OnAtx.
func (*MockTortoiseMockRecorder) OnBlock ¶
func (mr *MockTortoiseMockRecorder) OnBlock(arg0 any) *MockTortoiseOnBlockCall
OnBlock indicates an expected call of OnBlock.
func (*MockTortoiseMockRecorder) OnHareOutput ¶
func (mr *MockTortoiseMockRecorder) OnHareOutput(arg0, arg1 any) *MockTortoiseOnHareOutputCall
OnHareOutput indicates an expected call of OnHareOutput.
func (*MockTortoiseMockRecorder) OnMalfeasance ¶
func (mr *MockTortoiseMockRecorder) OnMalfeasance(arg0 any) *MockTortoiseOnMalfeasanceCall
OnMalfeasance indicates an expected call of OnMalfeasance.
func (*MockTortoiseMockRecorder) OnWeakCoin ¶
func (mr *MockTortoiseMockRecorder) OnWeakCoin(arg0, arg1 any) *MockTortoiseOnWeakCoinCall
OnWeakCoin indicates an expected call of OnWeakCoin.
func (*MockTortoiseMockRecorder) TallyVotes ¶
func (mr *MockTortoiseMockRecorder) TallyVotes(arg0, arg1 any) *MockTortoiseTallyVotesCall
TallyVotes indicates an expected call of TallyVotes.
func (*MockTortoiseMockRecorder) Updates ¶
func (mr *MockTortoiseMockRecorder) Updates() *MockTortoiseUpdatesCall
Updates indicates an expected call of Updates.
type MockTortoiseOnAppliedCall ¶ added in v1.4.0
MockTortoiseOnAppliedCall wrap *gomock.Call
func (*MockTortoiseOnAppliedCall) Do ¶ added in v1.4.0
func (c *MockTortoiseOnAppliedCall) Do(f func(types.LayerID, types.Hash32) bool) *MockTortoiseOnAppliedCall
Do rewrite *gomock.Call.Do
func (*MockTortoiseOnAppliedCall) DoAndReturn ¶ added in v1.4.0
func (c *MockTortoiseOnAppliedCall) DoAndReturn(f func(types.LayerID, types.Hash32) bool) *MockTortoiseOnAppliedCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTortoiseOnAppliedCall) Return ¶ added in v1.4.0
func (c *MockTortoiseOnAppliedCall) Return(arg0 bool) *MockTortoiseOnAppliedCall
Return rewrite *gomock.Call.Return
type MockTortoiseOnAtxCall ¶ added in v1.4.0
MockTortoiseOnAtxCall wrap *gomock.Call
func (*MockTortoiseOnAtxCall) Do ¶ added in v1.4.0
func (c *MockTortoiseOnAtxCall) Do(f func(types.EpochID, types.ATXID, *atxsdata.ATX)) *MockTortoiseOnAtxCall
Do rewrite *gomock.Call.Do
func (*MockTortoiseOnAtxCall) DoAndReturn ¶ added in v1.4.0
func (c *MockTortoiseOnAtxCall) DoAndReturn(f func(types.EpochID, types.ATXID, *atxsdata.ATX)) *MockTortoiseOnAtxCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTortoiseOnAtxCall) Return ¶ added in v1.4.0
func (c *MockTortoiseOnAtxCall) Return() *MockTortoiseOnAtxCall
Return rewrite *gomock.Call.Return
type MockTortoiseOnBlockCall ¶ added in v1.4.0
MockTortoiseOnBlockCall wrap *gomock.Call
func (*MockTortoiseOnBlockCall) Do ¶ added in v1.4.0
func (c *MockTortoiseOnBlockCall) Do(f func(types.BlockHeader)) *MockTortoiseOnBlockCall
Do rewrite *gomock.Call.Do
func (*MockTortoiseOnBlockCall) DoAndReturn ¶ added in v1.4.0
func (c *MockTortoiseOnBlockCall) DoAndReturn(f func(types.BlockHeader)) *MockTortoiseOnBlockCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTortoiseOnBlockCall) Return ¶ added in v1.4.0
func (c *MockTortoiseOnBlockCall) Return() *MockTortoiseOnBlockCall
Return rewrite *gomock.Call.Return
type MockTortoiseOnHareOutputCall ¶ added in v1.4.0
MockTortoiseOnHareOutputCall wrap *gomock.Call
func (*MockTortoiseOnHareOutputCall) Do ¶ added in v1.4.0
func (c *MockTortoiseOnHareOutputCall) Do(f func(types.LayerID, types.BlockID)) *MockTortoiseOnHareOutputCall
Do rewrite *gomock.Call.Do
func (*MockTortoiseOnHareOutputCall) DoAndReturn ¶ added in v1.4.0
func (c *MockTortoiseOnHareOutputCall) DoAndReturn(f func(types.LayerID, types.BlockID)) *MockTortoiseOnHareOutputCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTortoiseOnHareOutputCall) Return ¶ added in v1.4.0
func (c *MockTortoiseOnHareOutputCall) Return() *MockTortoiseOnHareOutputCall
Return rewrite *gomock.Call.Return
type MockTortoiseOnMalfeasanceCall ¶ added in v1.4.0
MockTortoiseOnMalfeasanceCall wrap *gomock.Call
func (*MockTortoiseOnMalfeasanceCall) Do ¶ added in v1.4.0
func (c *MockTortoiseOnMalfeasanceCall) Do(f func(types.NodeID)) *MockTortoiseOnMalfeasanceCall
Do rewrite *gomock.Call.Do
func (*MockTortoiseOnMalfeasanceCall) DoAndReturn ¶ added in v1.4.0
func (c *MockTortoiseOnMalfeasanceCall) DoAndReturn(f func(types.NodeID)) *MockTortoiseOnMalfeasanceCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTortoiseOnMalfeasanceCall) Return ¶ added in v1.4.0
func (c *MockTortoiseOnMalfeasanceCall) Return() *MockTortoiseOnMalfeasanceCall
Return rewrite *gomock.Call.Return
type MockTortoiseOnWeakCoinCall ¶ added in v1.4.0
MockTortoiseOnWeakCoinCall wrap *gomock.Call
func (*MockTortoiseOnWeakCoinCall) Do ¶ added in v1.4.0
func (c *MockTortoiseOnWeakCoinCall) Do(f func(types.LayerID, bool)) *MockTortoiseOnWeakCoinCall
Do rewrite *gomock.Call.Do
func (*MockTortoiseOnWeakCoinCall) DoAndReturn ¶ added in v1.4.0
func (c *MockTortoiseOnWeakCoinCall) DoAndReturn(f func(types.LayerID, bool)) *MockTortoiseOnWeakCoinCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTortoiseOnWeakCoinCall) Return ¶ added in v1.4.0
func (c *MockTortoiseOnWeakCoinCall) Return() *MockTortoiseOnWeakCoinCall
Return rewrite *gomock.Call.Return
type MockTortoiseTallyVotesCall ¶ added in v1.4.0
MockTortoiseTallyVotesCall wrap *gomock.Call
func (*MockTortoiseTallyVotesCall) Do ¶ added in v1.4.0
func (c *MockTortoiseTallyVotesCall) Do(f func(context.Context, types.LayerID)) *MockTortoiseTallyVotesCall
Do rewrite *gomock.Call.Do
func (*MockTortoiseTallyVotesCall) DoAndReturn ¶ added in v1.4.0
func (c *MockTortoiseTallyVotesCall) DoAndReturn(f func(context.Context, types.LayerID)) *MockTortoiseTallyVotesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTortoiseTallyVotesCall) Return ¶ added in v1.4.0
func (c *MockTortoiseTallyVotesCall) Return() *MockTortoiseTallyVotesCall
Return rewrite *gomock.Call.Return
type MockTortoiseUpdatesCall ¶ added in v1.4.0
MockTortoiseUpdatesCall wrap *gomock.Call
func (*MockTortoiseUpdatesCall) Do ¶ added in v1.4.0
func (c *MockTortoiseUpdatesCall) Do(f func() []result.Layer) *MockTortoiseUpdatesCall
Do rewrite *gomock.Call.Do
func (*MockTortoiseUpdatesCall) DoAndReturn ¶ added in v1.4.0
func (c *MockTortoiseUpdatesCall) DoAndReturn(f func() []result.Layer) *MockTortoiseUpdatesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTortoiseUpdatesCall) Return ¶ added in v1.4.0
func (c *MockTortoiseUpdatesCall) Return(arg0 []result.Layer) *MockTortoiseUpdatesCall
Return rewrite *gomock.Call.Return
type MockTxFetcher ¶
type MockTxFetcher struct {
// contains filtered or unexported fields
}
MockTxFetcher is a mock of TxFetcher interface.
func NewMockTxFetcher ¶
func NewMockTxFetcher(ctrl *gomock.Controller) *MockTxFetcher
NewMockTxFetcher creates a new mock instance.
func (*MockTxFetcher) EXPECT ¶
func (m *MockTxFetcher) EXPECT() *MockTxFetcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTxFetcher) GetBlockTxs ¶
func (m *MockTxFetcher) GetBlockTxs(arg0 context.Context, arg1 []types.TransactionID) error
GetBlockTxs mocks base method.
func (*MockTxFetcher) GetProposalTxs ¶
func (m *MockTxFetcher) GetProposalTxs(arg0 context.Context, arg1 []types.TransactionID) error
GetProposalTxs mocks base method.
type MockTxFetcherGetBlockTxsCall ¶ added in v1.4.0
MockTxFetcherGetBlockTxsCall wrap *gomock.Call
func (*MockTxFetcherGetBlockTxsCall) Do ¶ added in v1.4.0
func (c *MockTxFetcherGetBlockTxsCall) Do(f func(context.Context, []types.TransactionID) error) *MockTxFetcherGetBlockTxsCall
Do rewrite *gomock.Call.Do
func (*MockTxFetcherGetBlockTxsCall) DoAndReturn ¶ added in v1.4.0
func (c *MockTxFetcherGetBlockTxsCall) DoAndReturn(f func(context.Context, []types.TransactionID) error) *MockTxFetcherGetBlockTxsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTxFetcherGetBlockTxsCall) Return ¶ added in v1.4.0
func (c *MockTxFetcherGetBlockTxsCall) Return(arg0 error) *MockTxFetcherGetBlockTxsCall
Return rewrite *gomock.Call.Return
type MockTxFetcherGetProposalTxsCall ¶ added in v1.4.0
MockTxFetcherGetProposalTxsCall wrap *gomock.Call
func (*MockTxFetcherGetProposalTxsCall) Do ¶ added in v1.4.0
func (c *MockTxFetcherGetProposalTxsCall) Do(f func(context.Context, []types.TransactionID) error) *MockTxFetcherGetProposalTxsCall
Do rewrite *gomock.Call.Do
func (*MockTxFetcherGetProposalTxsCall) DoAndReturn ¶ added in v1.4.0
func (c *MockTxFetcherGetProposalTxsCall) DoAndReturn(f func(context.Context, []types.TransactionID) error) *MockTxFetcherGetProposalTxsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTxFetcherGetProposalTxsCall) Return ¶ added in v1.4.0
func (c *MockTxFetcherGetProposalTxsCall) Return(arg0 error) *MockTxFetcherGetProposalTxsCall
Return rewrite *gomock.Call.Return
type MockTxFetcherMockRecorder ¶
type MockTxFetcherMockRecorder struct {
// contains filtered or unexported fields
}
MockTxFetcherMockRecorder is the mock recorder for MockTxFetcher.
func (*MockTxFetcherMockRecorder) GetBlockTxs ¶
func (mr *MockTxFetcherMockRecorder) GetBlockTxs(arg0, arg1 any) *MockTxFetcherGetBlockTxsCall
GetBlockTxs indicates an expected call of GetBlockTxs.
func (*MockTxFetcherMockRecorder) GetProposalTxs ¶
func (mr *MockTxFetcherMockRecorder) GetProposalTxs(arg0, arg1 any) *MockTxFetcherGetProposalTxsCall
GetProposalTxs indicates an expected call of GetProposalTxs.
type MockValidationRequest ¶
type MockValidationRequest struct {
// contains filtered or unexported fields
}
MockValidationRequest is a mock of ValidationRequest interface.
func NewMockValidationRequest ¶
func NewMockValidationRequest(ctrl *gomock.Controller) *MockValidationRequest
NewMockValidationRequest creates a new mock instance.
func (*MockValidationRequest) EXPECT ¶
func (m *MockValidationRequest) EXPECT() *MockValidationRequestMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockValidationRequest) Parse ¶
func (m *MockValidationRequest) Parse() (*types.TxHeader, error)
Parse mocks base method.
func (*MockValidationRequest) Verify ¶
func (m *MockValidationRequest) Verify() bool
Verify mocks base method.
type MockValidationRequestMockRecorder ¶
type MockValidationRequestMockRecorder struct {
// contains filtered or unexported fields
}
MockValidationRequestMockRecorder is the mock recorder for MockValidationRequest.
func (*MockValidationRequestMockRecorder) Parse ¶
func (mr *MockValidationRequestMockRecorder) Parse() *MockValidationRequestParseCall
Parse indicates an expected call of Parse.
func (*MockValidationRequestMockRecorder) Verify ¶
func (mr *MockValidationRequestMockRecorder) Verify() *MockValidationRequestVerifyCall
Verify indicates an expected call of Verify.
type MockValidationRequestParseCall ¶ added in v1.4.0
MockValidationRequestParseCall wrap *gomock.Call
func (*MockValidationRequestParseCall) Do ¶ added in v1.4.0
func (c *MockValidationRequestParseCall) Do(f func() (*types.TxHeader, error)) *MockValidationRequestParseCall
Do rewrite *gomock.Call.Do
func (*MockValidationRequestParseCall) DoAndReturn ¶ added in v1.4.0
func (c *MockValidationRequestParseCall) DoAndReturn(f func() (*types.TxHeader, error)) *MockValidationRequestParseCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockValidationRequestParseCall) Return ¶ added in v1.4.0
func (c *MockValidationRequestParseCall) Return(arg0 *types.TxHeader, arg1 error) *MockValidationRequestParseCall
Return rewrite *gomock.Call.Return
type MockValidationRequestVerifyCall ¶ added in v1.4.0
MockValidationRequestVerifyCall wrap *gomock.Call
func (*MockValidationRequestVerifyCall) Do ¶ added in v1.4.0
func (c *MockValidationRequestVerifyCall) Do(f func() bool) *MockValidationRequestVerifyCall
Do rewrite *gomock.Call.Do
func (*MockValidationRequestVerifyCall) DoAndReturn ¶ added in v1.4.0
func (c *MockValidationRequestVerifyCall) DoAndReturn(f func() bool) *MockValidationRequestVerifyCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockValidationRequestVerifyCall) Return ¶ added in v1.4.0
func (c *MockValidationRequestVerifyCall) Return(arg0 bool) *MockValidationRequestVerifyCall
Return rewrite *gomock.Call.Return