Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockatxDataProvider
- type MockatxDataProviderMockRecorder
- type MockblockDataProvider
- func (m *MockblockDataProvider) ContextualValidity(arg0 types.BlockID) (bool, error)
- func (m *MockblockDataProvider) EXPECT() *MockblockDataProviderMockRecorder
- func (m *MockblockDataProvider) GetBallot(id types.BallotID) (*types.Ballot, error)
- func (m *MockblockDataProvider) GetBlock(arg0 types.BlockID) (*types.Block, error)
- func (m *MockblockDataProvider) GetCoinflip(arg0 context.Context, arg1 types.LayerID) (bool, bool)
- func (m *MockblockDataProvider) GetHareConsensusOutput(arg0 types.LayerID) (types.BlockID, error)
- func (m *MockblockDataProvider) LayerBallots(arg0 types.LayerID) ([]*types.Ballot, error)
- func (m *MockblockDataProvider) LayerBlockIds(layerID types.LayerID) ([]types.BlockID, error)
- func (m *MockblockDataProvider) LayerContextuallyValidBlocks(arg0 context.Context, arg1 types.LayerID) (map[types.BlockID]struct{}, error)
- func (m *MockblockDataProvider) SaveContextualValidity(arg0 types.BlockID, arg1 types.LayerID, arg2 bool) error
- type MockblockDataProviderMockRecorder
- func (mr *MockblockDataProviderMockRecorder) ContextualValidity(arg0 interface{}) *gomock.Call
- func (mr *MockblockDataProviderMockRecorder) GetBallot(id interface{}) *gomock.Call
- func (mr *MockblockDataProviderMockRecorder) GetBlock(arg0 interface{}) *gomock.Call
- func (mr *MockblockDataProviderMockRecorder) GetCoinflip(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockblockDataProviderMockRecorder) GetHareConsensusOutput(arg0 interface{}) *gomock.Call
- func (mr *MockblockDataProviderMockRecorder) LayerBallots(arg0 interface{}) *gomock.Call
- func (mr *MockblockDataProviderMockRecorder) LayerBlockIds(layerID interface{}) *gomock.Call
- func (mr *MockblockDataProviderMockRecorder) LayerContextuallyValidBlocks(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockblockDataProviderMockRecorder) SaveContextualValidity(arg0, arg1, arg2 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockatxDataProvider ¶
type MockatxDataProvider struct {
// contains filtered or unexported fields
}
MockatxDataProvider is a mock of atxDataProvider interface.
func NewMockatxDataProvider ¶
func NewMockatxDataProvider(ctrl *gomock.Controller) *MockatxDataProvider
NewMockatxDataProvider creates a new mock instance.
func (*MockatxDataProvider) EXPECT ¶
func (m *MockatxDataProvider) EXPECT() *MockatxDataProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockatxDataProvider) GetAtxHeader ¶
func (m *MockatxDataProvider) GetAtxHeader(arg0 types.ATXID) (*types.ActivationTxHeader, error)
GetAtxHeader mocks base method.
func (*MockatxDataProvider) GetEpochWeight ¶
GetEpochWeight mocks base method.
type MockatxDataProviderMockRecorder ¶
type MockatxDataProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockatxDataProviderMockRecorder is the mock recorder for MockatxDataProvider.
func (*MockatxDataProviderMockRecorder) GetAtxHeader ¶
func (mr *MockatxDataProviderMockRecorder) GetAtxHeader(arg0 interface{}) *gomock.Call
GetAtxHeader indicates an expected call of GetAtxHeader.
func (*MockatxDataProviderMockRecorder) GetEpochWeight ¶
func (mr *MockatxDataProviderMockRecorder) GetEpochWeight(epochID interface{}) *gomock.Call
GetEpochWeight indicates an expected call of GetEpochWeight.
type MockblockDataProvider ¶
type MockblockDataProvider struct {
// contains filtered or unexported fields
}
MockblockDataProvider is a mock of blockDataProvider interface.
func NewMockblockDataProvider ¶
func NewMockblockDataProvider(ctrl *gomock.Controller) *MockblockDataProvider
NewMockblockDataProvider creates a new mock instance.
func (*MockblockDataProvider) ContextualValidity ¶
func (m *MockblockDataProvider) ContextualValidity(arg0 types.BlockID) (bool, error)
ContextualValidity mocks base method.
func (*MockblockDataProvider) EXPECT ¶
func (m *MockblockDataProvider) EXPECT() *MockblockDataProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockblockDataProvider) GetCoinflip ¶
GetCoinflip mocks base method.
func (*MockblockDataProvider) GetHareConsensusOutput ¶
GetHareConsensusOutput mocks base method.
func (*MockblockDataProvider) LayerBallots ¶
LayerBallots mocks base method.
func (*MockblockDataProvider) LayerBlockIds ¶
LayerBlockIds mocks base method.
func (*MockblockDataProvider) LayerContextuallyValidBlocks ¶
func (m *MockblockDataProvider) LayerContextuallyValidBlocks(arg0 context.Context, arg1 types.LayerID) (map[types.BlockID]struct{}, error)
LayerContextuallyValidBlocks mocks base method.
func (*MockblockDataProvider) SaveContextualValidity ¶
func (m *MockblockDataProvider) SaveContextualValidity(arg0 types.BlockID, arg1 types.LayerID, arg2 bool) error
SaveContextualValidity mocks base method.
type MockblockDataProviderMockRecorder ¶
type MockblockDataProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockblockDataProviderMockRecorder is the mock recorder for MockblockDataProvider.
func (*MockblockDataProviderMockRecorder) ContextualValidity ¶
func (mr *MockblockDataProviderMockRecorder) ContextualValidity(arg0 interface{}) *gomock.Call
ContextualValidity indicates an expected call of ContextualValidity.
func (*MockblockDataProviderMockRecorder) GetBallot ¶
func (mr *MockblockDataProviderMockRecorder) GetBallot(id interface{}) *gomock.Call
GetBallot indicates an expected call of GetBallot.
func (*MockblockDataProviderMockRecorder) GetBlock ¶
func (mr *MockblockDataProviderMockRecorder) GetBlock(arg0 interface{}) *gomock.Call
GetBlock indicates an expected call of GetBlock.
func (*MockblockDataProviderMockRecorder) GetCoinflip ¶
func (mr *MockblockDataProviderMockRecorder) GetCoinflip(arg0, arg1 interface{}) *gomock.Call
GetCoinflip indicates an expected call of GetCoinflip.
func (*MockblockDataProviderMockRecorder) GetHareConsensusOutput ¶
func (mr *MockblockDataProviderMockRecorder) GetHareConsensusOutput(arg0 interface{}) *gomock.Call
GetHareConsensusOutput indicates an expected call of GetHareConsensusOutput.
func (*MockblockDataProviderMockRecorder) LayerBallots ¶
func (mr *MockblockDataProviderMockRecorder) LayerBallots(arg0 interface{}) *gomock.Call
LayerBallots indicates an expected call of LayerBallots.
func (*MockblockDataProviderMockRecorder) LayerBlockIds ¶
func (mr *MockblockDataProviderMockRecorder) LayerBlockIds(layerID interface{}) *gomock.Call
LayerBlockIds indicates an expected call of LayerBlockIds.
func (*MockblockDataProviderMockRecorder) LayerContextuallyValidBlocks ¶
func (mr *MockblockDataProviderMockRecorder) LayerContextuallyValidBlocks(arg0, arg1 interface{}) *gomock.Call
LayerContextuallyValidBlocks indicates an expected call of LayerContextuallyValidBlocks.
func (*MockblockDataProviderMockRecorder) SaveContextualValidity ¶
func (mr *MockblockDataProviderMockRecorder) SaveContextualValidity(arg0, arg1, arg2 interface{}) *gomock.Call
SaveContextualValidity indicates an expected call of SaveContextualValidity.