Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockactivationDB
- func (m *MockactivationDB) EXPECT() *MockactivationDBMockRecorder
- func (m *MockactivationDB) GetAtxHeader(arg0 types.ATXID) (*types.ActivationTxHeader, error)
- func (m *MockactivationDB) GetEpochWeight(arg0 types.EpochID) (uint64, []types.ATXID, error)
- func (m *MockactivationDB) GetNodeAtxIDForEpoch(nodeID types.NodeID, targetEpoch types.EpochID) (types.ATXID, error)
- type MockactivationDBMockRecorder
- type MockbaseBallotProvider
- type MockbaseBallotProviderMockRecorder
- type Mockprojector
- type MockprojectorMockRecorder
- type MockproposalDB
- type MockproposalDBMockRecorder
- type MockproposalOracle
- type MockproposalOracleMockRecorder
- type MocktxPool
- type MocktxPoolMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockactivationDB ¶
type MockactivationDB struct {
// contains filtered or unexported fields
}
MockactivationDB is a mock of activationDB interface.
func NewMockactivationDB ¶
func NewMockactivationDB(ctrl *gomock.Controller) *MockactivationDB
NewMockactivationDB creates a new mock instance.
func (*MockactivationDB) EXPECT ¶
func (m *MockactivationDB) EXPECT() *MockactivationDBMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockactivationDB) GetAtxHeader ¶
func (m *MockactivationDB) GetAtxHeader(arg0 types.ATXID) (*types.ActivationTxHeader, error)
GetAtxHeader mocks base method.
func (*MockactivationDB) GetEpochWeight ¶
GetEpochWeight mocks base method.
func (*MockactivationDB) GetNodeAtxIDForEpoch ¶
func (m *MockactivationDB) GetNodeAtxIDForEpoch(nodeID types.NodeID, targetEpoch types.EpochID) (types.ATXID, error)
GetNodeAtxIDForEpoch mocks base method.
type MockactivationDBMockRecorder ¶
type MockactivationDBMockRecorder struct {
// contains filtered or unexported fields
}
MockactivationDBMockRecorder is the mock recorder for MockactivationDB.
func (*MockactivationDBMockRecorder) GetAtxHeader ¶
func (mr *MockactivationDBMockRecorder) GetAtxHeader(arg0 interface{}) *gomock.Call
GetAtxHeader indicates an expected call of GetAtxHeader.
func (*MockactivationDBMockRecorder) GetEpochWeight ¶
func (mr *MockactivationDBMockRecorder) GetEpochWeight(arg0 interface{}) *gomock.Call
GetEpochWeight indicates an expected call of GetEpochWeight.
func (*MockactivationDBMockRecorder) GetNodeAtxIDForEpoch ¶
func (mr *MockactivationDBMockRecorder) GetNodeAtxIDForEpoch(nodeID, targetEpoch interface{}) *gomock.Call
GetNodeAtxIDForEpoch indicates an expected call of GetNodeAtxIDForEpoch.
type MockbaseBallotProvider ¶
type MockbaseBallotProvider struct {
// contains filtered or unexported fields
}
MockbaseBallotProvider is a mock of baseBallotProvider interface.
func NewMockbaseBallotProvider ¶
func NewMockbaseBallotProvider(ctrl *gomock.Controller) *MockbaseBallotProvider
NewMockbaseBallotProvider creates a new mock instance.
func (*MockbaseBallotProvider) BaseBallot ¶
BaseBallot mocks base method.
func (*MockbaseBallotProvider) EXPECT ¶
func (m *MockbaseBallotProvider) EXPECT() *MockbaseBallotProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockbaseBallotProviderMockRecorder ¶
type MockbaseBallotProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockbaseBallotProviderMockRecorder is the mock recorder for MockbaseBallotProvider.
func (*MockbaseBallotProviderMockRecorder) BaseBallot ¶
func (mr *MockbaseBallotProviderMockRecorder) BaseBallot(arg0 interface{}) *gomock.Call
BaseBallot indicates an expected call of BaseBallot.
type Mockprojector ¶
type Mockprojector struct {
// contains filtered or unexported fields
}
Mockprojector is a mock of projector interface.
func NewMockprojector ¶
func NewMockprojector(ctrl *gomock.Controller) *Mockprojector
NewMockprojector creates a new mock instance.
func (*Mockprojector) EXPECT ¶
func (m *Mockprojector) EXPECT() *MockprojectorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*Mockprojector) GetProjection ¶
GetProjection mocks base method.
type MockprojectorMockRecorder ¶
type MockprojectorMockRecorder struct {
// contains filtered or unexported fields
}
MockprojectorMockRecorder is the mock recorder for Mockprojector.
func (*MockprojectorMockRecorder) GetProjection ¶
func (mr *MockprojectorMockRecorder) GetProjection(arg0 interface{}) *gomock.Call
GetProjection indicates an expected call of GetProjection.
type MockproposalDB ¶
type MockproposalDB struct {
// contains filtered or unexported fields
}
MockproposalDB is a mock of proposalDB interface.
func NewMockproposalDB ¶
func NewMockproposalDB(ctrl *gomock.Controller) *MockproposalDB
NewMockproposalDB creates a new mock instance.
func (*MockproposalDB) AddProposal ¶
AddProposal mocks base method.
func (*MockproposalDB) EXPECT ¶
func (m *MockproposalDB) EXPECT() *MockproposalDBMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockproposalDBMockRecorder ¶
type MockproposalDBMockRecorder struct {
// contains filtered or unexported fields
}
MockproposalDBMockRecorder is the mock recorder for MockproposalDB.
func (*MockproposalDBMockRecorder) AddProposal ¶
func (mr *MockproposalDBMockRecorder) AddProposal(arg0, arg1 interface{}) *gomock.Call
AddProposal indicates an expected call of AddProposal.
type MockproposalOracle ¶
type MockproposalOracle struct {
// contains filtered or unexported fields
}
MockproposalOracle is a mock of proposalOracle interface.
func NewMockproposalOracle ¶
func NewMockproposalOracle(ctrl *gomock.Controller) *MockproposalOracle
NewMockproposalOracle creates a new mock instance.
func (*MockproposalOracle) EXPECT ¶
func (m *MockproposalOracle) EXPECT() *MockproposalOracleMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockproposalOracle) GetProposalEligibility ¶
func (m *MockproposalOracle) GetProposalEligibility(arg0 types.LayerID, arg1 types.Beacon) (types.ATXID, []types.ATXID, []types.VotingEligibilityProof, error)
GetProposalEligibility mocks base method.
type MockproposalOracleMockRecorder ¶
type MockproposalOracleMockRecorder struct {
// contains filtered or unexported fields
}
MockproposalOracleMockRecorder is the mock recorder for MockproposalOracle.
func (*MockproposalOracleMockRecorder) GetProposalEligibility ¶
func (mr *MockproposalOracleMockRecorder) GetProposalEligibility(arg0, arg1 interface{}) *gomock.Call
GetProposalEligibility indicates an expected call of GetProposalEligibility.
type MocktxPool ¶
type MocktxPool struct {
// contains filtered or unexported fields
}
MocktxPool is a mock of txPool interface.
func NewMocktxPool ¶
func NewMocktxPool(ctrl *gomock.Controller) *MocktxPool
NewMocktxPool creates a new mock instance.
func (*MocktxPool) EXPECT ¶
func (m *MocktxPool) EXPECT() *MocktxPoolMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MocktxPool) SelectTopNTransactions ¶
func (m *MocktxPool) SelectTopNTransactions(numOfTxs int, getState func(types.Address) (uint64, uint64, error)) ([]types.TransactionID, []*types.Transaction, error)
SelectTopNTransactions mocks base method.
type MocktxPoolMockRecorder ¶
type MocktxPoolMockRecorder struct {
// contains filtered or unexported fields
}
MocktxPoolMockRecorder is the mock recorder for MocktxPool.
func (*MocktxPoolMockRecorder) SelectTopNTransactions ¶
func (mr *MocktxPoolMockRecorder) SelectTopNTransactions(numOfTxs, getState interface{}) *gomock.Call
SelectTopNTransactions indicates an expected call of SelectTopNTransactions.