mocks

package
v0.2.16-beta.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

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

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

func (m *MockatxDataProvider) GetEpochWeight(epochID types.EpochID) (uint64, []types.ATXID, error)

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) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockblockDataProvider) GetBallot

func (m *MockblockDataProvider) GetBallot(id types.BallotID) (*types.Ballot, error)

GetBallot mocks base method.

func (*MockblockDataProvider) GetBlock

func (m *MockblockDataProvider) GetBlock(arg0 types.BlockID) (*types.Block, error)

GetBlock mocks base method.

func (*MockblockDataProvider) GetCoinflip

func (m *MockblockDataProvider) GetCoinflip(arg0 context.Context, arg1 types.LayerID) (bool, bool)

GetCoinflip mocks base method.

func (*MockblockDataProvider) GetHareConsensusOutput

func (m *MockblockDataProvider) GetHareConsensusOutput(arg0 types.LayerID) (types.BlockID, error)

GetHareConsensusOutput mocks base method.

func (*MockblockDataProvider) LayerBallots

func (m *MockblockDataProvider) LayerBallots(arg0 types.LayerID) ([]*types.Ballot, error)

LayerBallots mocks base method.

func (*MockblockDataProvider) LayerBlockIds

func (m *MockblockDataProvider) LayerBlockIds(layerID types.LayerID) ([]types.BlockID, error)

LayerBlockIds mocks base method.

func (*MockblockDataProvider) LayerContextualValidity

func (m *MockblockDataProvider) LayerContextualValidity(arg0 types.LayerID) ([]types.BlockContextualValidity, error)

LayerContextualValidity mocks base method.

type MockblockDataProviderMockRecorder

type MockblockDataProviderMockRecorder struct {
	// contains filtered or unexported fields
}

MockblockDataProviderMockRecorder is the mock recorder for MockblockDataProvider.

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) LayerContextualValidity

func (mr *MockblockDataProviderMockRecorder) LayerContextualValidity(arg0 interface{}) *gomock.Call

LayerContextualValidity indicates an expected call of LayerContextualValidity.

type MockblockValidityUpdater

type MockblockValidityUpdater struct {
	// contains filtered or unexported fields
}

MockblockValidityUpdater is a mock of blockValidityUpdater interface.

func NewMockblockValidityUpdater

func NewMockblockValidityUpdater(ctrl *gomock.Controller) *MockblockValidityUpdater

NewMockblockValidityUpdater creates a new mock instance.

func (*MockblockValidityUpdater) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockblockValidityUpdater) UpdateBlockValidity

func (m *MockblockValidityUpdater) UpdateBlockValidity(arg0 types.BlockID, arg1 types.LayerID, arg2 bool) error

UpdateBlockValidity mocks base method.

type MockblockValidityUpdaterMockRecorder

type MockblockValidityUpdaterMockRecorder struct {
	// contains filtered or unexported fields
}

MockblockValidityUpdaterMockRecorder is the mock recorder for MockblockValidityUpdater.

func (*MockblockValidityUpdaterMockRecorder) UpdateBlockValidity

func (mr *MockblockValidityUpdaterMockRecorder) UpdateBlockValidity(arg0, arg1, arg2 interface{}) *gomock.Call

UpdateBlockValidity indicates an expected call of UpdateBlockValidity.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL