mocks

package
v1.5.0-alpha.4-nomain Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 5 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 MockconservativeState

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

MockconservativeState is a mock of conservativeState interface.

func NewMockconservativeState

func NewMockconservativeState(ctrl *gomock.Controller) *MockconservativeState

NewMockconservativeState creates a new mock instance.

func (*MockconservativeState) EXPECT

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

func (*MockconservativeState) LinkTXsWithBlock

func (m *MockconservativeState) LinkTXsWithBlock(arg0 types.LayerID, arg1 types.BlockID, arg2 []types.TransactionID) error

LinkTXsWithBlock mocks base method.

func (*MockconservativeState) LinkTXsWithProposal

func (m *MockconservativeState) LinkTXsWithProposal(arg0 types.LayerID, arg1 types.ProposalID, arg2 []types.TransactionID) error

LinkTXsWithProposal mocks base method.

func (*MockconservativeState) RevertCache

func (m *MockconservativeState) RevertCache(arg0 types.LayerID) error

RevertCache mocks base method.

func (*MockconservativeState) UpdateCache

UpdateCache mocks base method.

type MockconservativeStateLinkTXsWithBlockCall added in v1.4.0

type MockconservativeStateLinkTXsWithBlockCall struct {
	*gomock.Call
}

MockconservativeStateLinkTXsWithBlockCall wrap *gomock.Call

func (*MockconservativeStateLinkTXsWithBlockCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockconservativeStateLinkTXsWithBlockCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockconservativeStateLinkTXsWithBlockCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockconservativeStateLinkTXsWithProposalCall added in v1.4.0

type MockconservativeStateLinkTXsWithProposalCall struct {
	*gomock.Call
}

MockconservativeStateLinkTXsWithProposalCall wrap *gomock.Call

func (*MockconservativeStateLinkTXsWithProposalCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockconservativeStateLinkTXsWithProposalCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockconservativeStateLinkTXsWithProposalCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockconservativeStateMockRecorder

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

MockconservativeStateMockRecorder is the mock recorder for MockconservativeState.

func (*MockconservativeStateMockRecorder) LinkTXsWithBlock

LinkTXsWithBlock indicates an expected call of LinkTXsWithBlock.

func (*MockconservativeStateMockRecorder) LinkTXsWithProposal

func (mr *MockconservativeStateMockRecorder) LinkTXsWithProposal(arg0, arg1, arg2 any) *MockconservativeStateLinkTXsWithProposalCall

LinkTXsWithProposal indicates an expected call of LinkTXsWithProposal.

func (*MockconservativeStateMockRecorder) RevertCache

RevertCache indicates an expected call of RevertCache.

func (*MockconservativeStateMockRecorder) UpdateCache

func (mr *MockconservativeStateMockRecorder) UpdateCache(arg0, arg1, arg2, arg3, arg4 any) *MockconservativeStateUpdateCacheCall

UpdateCache indicates an expected call of UpdateCache.

type MockconservativeStateRevertCacheCall added in v1.4.0

type MockconservativeStateRevertCacheCall struct {
	*gomock.Call
}

MockconservativeStateRevertCacheCall wrap *gomock.Call

func (*MockconservativeStateRevertCacheCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockconservativeStateRevertCacheCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockconservativeStateRevertCacheCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockconservativeStateUpdateCacheCall added in v1.4.0

type MockconservativeStateUpdateCacheCall struct {
	*gomock.Call
}

MockconservativeStateUpdateCacheCall wrap *gomock.Call

func (*MockconservativeStateUpdateCacheCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockconservativeStateUpdateCacheCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockconservativeStateUpdateCacheCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MocklayerClock

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

MocklayerClock is a mock of layerClock interface.

func NewMocklayerClock

func NewMocklayerClock(ctrl *gomock.Controller) *MocklayerClock

NewMocklayerClock creates a new mock instance.

func (*MocklayerClock) CurrentLayer

func (m *MocklayerClock) CurrentLayer() types.LayerID

CurrentLayer mocks base method.

func (*MocklayerClock) EXPECT

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

type MocklayerClockCurrentLayerCall added in v1.4.0

type MocklayerClockCurrentLayerCall struct {
	*gomock.Call
}

MocklayerClockCurrentLayerCall wrap *gomock.Call

func (*MocklayerClockCurrentLayerCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MocklayerClockCurrentLayerCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MocklayerClockCurrentLayerCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MocklayerClockMockRecorder

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

MocklayerClockMockRecorder is the mock recorder for MocklayerClock.

func (*MocklayerClockMockRecorder) CurrentLayer

CurrentLayer indicates an expected call of CurrentLayer.

type MockvmState

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

MockvmState is a mock of vmState interface.

func NewMockvmState

func NewMockvmState(ctrl *gomock.Controller) *MockvmState

NewMockvmState creates a new mock instance.

func (*MockvmState) Apply

Apply mocks base method.

func (*MockvmState) EXPECT

func (m *MockvmState) EXPECT() *MockvmStateMockRecorder

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

func (*MockvmState) GetStateRoot

func (m *MockvmState) GetStateRoot() (types.Hash32, error)

GetStateRoot mocks base method.

func (*MockvmState) Revert

func (m *MockvmState) Revert(arg0 types.LayerID) error

Revert mocks base method.

type MockvmStateApplyCall added in v1.4.0

type MockvmStateApplyCall struct {
	*gomock.Call
}

MockvmStateApplyCall wrap *gomock.Call

func (*MockvmStateApplyCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockvmStateApplyCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockvmStateApplyCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockvmStateGetStateRootCall added in v1.4.0

type MockvmStateGetStateRootCall struct {
	*gomock.Call
}

MockvmStateGetStateRootCall wrap *gomock.Call

func (*MockvmStateGetStateRootCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockvmStateGetStateRootCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockvmStateGetStateRootCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockvmStateMockRecorder

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

MockvmStateMockRecorder is the mock recorder for MockvmState.

func (*MockvmStateMockRecorder) Apply

func (mr *MockvmStateMockRecorder) Apply(arg0, arg1, arg2 any) *MockvmStateApplyCall

Apply indicates an expected call of Apply.

func (*MockvmStateMockRecorder) GetStateRoot

GetStateRoot indicates an expected call of GetStateRoot.

func (*MockvmStateMockRecorder) Revert

Revert indicates an expected call of Revert.

type MockvmStateRevertCall added in v1.4.0

type MockvmStateRevertCall struct {
	*gomock.Call
}

MockvmStateRevertCall wrap *gomock.Call

func (*MockvmStateRevertCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockvmStateRevertCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockvmStateRevertCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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