mocks

package
v0.3.11-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: MIT Imports: 7 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

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

func (*MockAtxFetcher) GetAtxs

func (m *MockAtxFetcher) GetAtxs(arg0 context.Context, arg1 []types.ATXID) error

GetAtxs mocks base method.

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 interface{}) *gomock.Call

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

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

func (*MockBallotFetcher) GetBallots

func (m *MockBallotFetcher) GetBallots(arg0 context.Context, arg1 []types.BallotID) error

GetBallots mocks base method.

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 interface{}) *gomock.Call

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

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

func (*MockBeaconCollector) ReportBeaconFromBallot

func (m *MockBeaconCollector) ReportBeaconFromBallot(arg0 types.EpochID, arg1 *types.Ballot, arg2 types.Beacon, arg3 fixed.Fixed)

ReportBeaconFromBallot mocks base method.

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 interface{}) *gomock.Call

ReportBeaconFromBallot indicates an expected call of ReportBeaconFromBallot.

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

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

func (*MockBeaconGetter) GetBeacon

func (m *MockBeaconGetter) GetBeacon(arg0 types.EpochID) (types.Beacon, error)

GetBeacon mocks base method.

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 interface{}) *gomock.Call

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

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

func (*MockBlockFetcher) GetBlocks

func (m *MockBlockFetcher) GetBlocks(arg0 context.Context, arg1 []types.BlockID) error

GetBlocks mocks base method.

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 interface{}) *gomock.Call

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

func (m *MockFetcher) GetAtxs(arg0 context.Context, arg1 []types.ATXID) error

GetAtxs mocks base method.

func (*MockFetcher) GetBallots

func (m *MockFetcher) GetBallots(arg0 context.Context, arg1 []types.BallotID) error

GetBallots mocks base method.

func (*MockFetcher) GetBlockTxs

func (m *MockFetcher) GetBlockTxs(arg0 context.Context, arg1 []types.TransactionID) error

GetBlockTxs mocks base method.

func (*MockFetcher) GetBlocks

func (m *MockFetcher) GetBlocks(arg0 context.Context, arg1 []types.BlockID) error

GetBlocks mocks base method.

func (*MockFetcher) GetPoetProof

func (m *MockFetcher) GetPoetProof(arg0 context.Context, arg1 types.Hash32) error

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 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 interface{}) *gomock.Call

GetAtxs indicates an expected call of GetAtxs.

func (*MockFetcherMockRecorder) GetBallots

func (mr *MockFetcherMockRecorder) GetBallots(arg0, arg1 interface{}) *gomock.Call

GetBallots indicates an expected call of GetBallots.

func (*MockFetcherMockRecorder) GetBlockTxs

func (mr *MockFetcherMockRecorder) GetBlockTxs(arg0, arg1 interface{}) *gomock.Call

GetBlockTxs indicates an expected call of GetBlockTxs.

func (*MockFetcherMockRecorder) GetBlocks

func (mr *MockFetcherMockRecorder) GetBlocks(arg0, arg1 interface{}) *gomock.Call

GetBlocks indicates an expected call of GetBlocks.

func (*MockFetcherMockRecorder) GetPoetProof

func (mr *MockFetcherMockRecorder) GetPoetProof(arg0, arg1 interface{}) *gomock.Call

GetPoetProof indicates an expected call of GetPoetProof.

func (*MockFetcherMockRecorder) GetProposalTxs

func (mr *MockFetcherMockRecorder) GetProposalTxs(arg0, arg1 interface{}) *gomock.Call

GetProposalTxs indicates an expected call of GetProposalTxs.

func (*MockFetcherMockRecorder) GetProposals

func (mr *MockFetcherMockRecorder) GetProposals(arg0, arg1 interface{}) *gomock.Call

GetProposals indicates an expected call of GetProposals.

func (*MockFetcherMockRecorder) RegisterPeerHashes

func (mr *MockFetcherMockRecorder) RegisterPeerHashes(peer, hashes interface{}) *gomock.Call

RegisterPeerHashes indicates an expected call of RegisterPeerHashes.

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

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 interface{}) *gomock.Call

RegisterPeerHashes indicates an expected call of RegisterPeerHashes.

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

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

func (*MockPoetProofFetcher) GetPoetProof

func (m *MockPoetProofFetcher) GetPoetProof(arg0 context.Context, arg1 types.Hash32) error

GetPoetProof mocks base method.

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 interface{}) *gomock.Call

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

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 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 interface{}) *gomock.Call

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

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.

func (*MockSyncStateProvider) IsSynced

func (m *MockSyncStateProvider) IsSynced(arg0 context.Context) bool

IsSynced mocks base method.

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 interface{}) *gomock.Call

IsBeaconSynced indicates an expected call of IsBeaconSynced.

func (*MockSyncStateProviderMockRecorder) IsSynced

func (mr *MockSyncStateProviderMockRecorder) IsSynced(arg0 interface{}) *gomock.Call

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

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

func (*MockTortoise) LatestComplete

func (m *MockTortoise) LatestComplete() types.LayerID

LatestComplete mocks base method.

func (*MockTortoise) OnAtx

func (m *MockTortoise) OnAtx(arg0 *types.AtxTortoiseData)

OnAtx 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) Results

func (m *MockTortoise) Results(from, to types.LayerID) ([]result.Layer, error)

Results 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 MockTortoiseMockRecorder

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

MockTortoiseMockRecorder is the mock recorder for MockTortoise.

func (*MockTortoiseMockRecorder) LatestComplete

func (mr *MockTortoiseMockRecorder) LatestComplete() *gomock.Call

LatestComplete indicates an expected call of LatestComplete.

func (*MockTortoiseMockRecorder) OnAtx

func (mr *MockTortoiseMockRecorder) OnAtx(arg0 interface{}) *gomock.Call

OnAtx indicates an expected call of OnAtx.

func (*MockTortoiseMockRecorder) OnBlock

func (mr *MockTortoiseMockRecorder) OnBlock(arg0 interface{}) *gomock.Call

OnBlock indicates an expected call of OnBlock.

func (*MockTortoiseMockRecorder) OnHareOutput

func (mr *MockTortoiseMockRecorder) OnHareOutput(arg0, arg1 interface{}) *gomock.Call

OnHareOutput indicates an expected call of OnHareOutput.

func (*MockTortoiseMockRecorder) OnMalfeasance

func (mr *MockTortoiseMockRecorder) OnMalfeasance(arg0 interface{}) *gomock.Call

OnMalfeasance indicates an expected call of OnMalfeasance.

func (*MockTortoiseMockRecorder) OnWeakCoin

func (mr *MockTortoiseMockRecorder) OnWeakCoin(arg0, arg1 interface{}) *gomock.Call

OnWeakCoin indicates an expected call of OnWeakCoin.

func (*MockTortoiseMockRecorder) Results

func (mr *MockTortoiseMockRecorder) Results(from, to interface{}) *gomock.Call

Results indicates an expected call of Results.

func (*MockTortoiseMockRecorder) TallyVotes

func (mr *MockTortoiseMockRecorder) TallyVotes(arg0, arg1 interface{}) *gomock.Call

TallyVotes indicates an expected call of TallyVotes.

func (*MockTortoiseMockRecorder) Updates

func (mr *MockTortoiseMockRecorder) Updates() *gomock.Call

Updates indicates an expected call of Updates.

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

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 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 interface{}) *gomock.Call

GetBlockTxs indicates an expected call of GetBlockTxs.

func (*MockTxFetcherMockRecorder) GetProposalTxs

func (mr *MockTxFetcherMockRecorder) GetProposalTxs(arg0, arg1 interface{}) *gomock.Call

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

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

Parse indicates an expected call of Parse.

func (*MockValidationRequestMockRecorder) Verify

Verify indicates an expected call of Verify.

Jump to

Keyboard shortcuts

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