Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockconservativeState
- func (m *MockconservativeState) EXPECT() *MockconservativeStateMockRecorder
- func (m *MockconservativeState) LinkTXsWithBlock(arg0 types.LayerID, arg1 types.BlockID, arg2 []types.TransactionID) error
- func (m *MockconservativeState) LinkTXsWithProposal(arg0 types.LayerID, arg1 types.ProposalID, arg2 []types.TransactionID) error
- func (m *MockconservativeState) RevertCache(arg0 types.LayerID) error
- func (m *MockconservativeState) UpdateCache(arg0 context.Context, arg1 types.LayerID, arg2 types.BlockID, ...) error
- type MockconservativeStateLinkTXsWithBlockCall
- func (c *MockconservativeStateLinkTXsWithBlockCall) Do(f func(types.LayerID, types.BlockID, []types.TransactionID) error) *MockconservativeStateLinkTXsWithBlockCall
- func (c *MockconservativeStateLinkTXsWithBlockCall) DoAndReturn(f func(types.LayerID, types.BlockID, []types.TransactionID) error) *MockconservativeStateLinkTXsWithBlockCall
- func (c *MockconservativeStateLinkTXsWithBlockCall) Return(arg0 error) *MockconservativeStateLinkTXsWithBlockCall
- type MockconservativeStateLinkTXsWithProposalCall
- func (c *MockconservativeStateLinkTXsWithProposalCall) Do(f func(types.LayerID, types.ProposalID, []types.TransactionID) error) *MockconservativeStateLinkTXsWithProposalCall
- func (c *MockconservativeStateLinkTXsWithProposalCall) DoAndReturn(f func(types.LayerID, types.ProposalID, []types.TransactionID) error) *MockconservativeStateLinkTXsWithProposalCall
- func (c *MockconservativeStateLinkTXsWithProposalCall) Return(arg0 error) *MockconservativeStateLinkTXsWithProposalCall
- type MockconservativeStateMockRecorder
- func (mr *MockconservativeStateMockRecorder) LinkTXsWithBlock(arg0, arg1, arg2 any) *MockconservativeStateLinkTXsWithBlockCall
- func (mr *MockconservativeStateMockRecorder) LinkTXsWithProposal(arg0, arg1, arg2 any) *MockconservativeStateLinkTXsWithProposalCall
- func (mr *MockconservativeStateMockRecorder) RevertCache(arg0 any) *MockconservativeStateRevertCacheCall
- func (mr *MockconservativeStateMockRecorder) UpdateCache(arg0, arg1, arg2, arg3, arg4 any) *MockconservativeStateUpdateCacheCall
- type MockconservativeStateRevertCacheCall
- func (c *MockconservativeStateRevertCacheCall) Do(f func(types.LayerID) error) *MockconservativeStateRevertCacheCall
- func (c *MockconservativeStateRevertCacheCall) DoAndReturn(f func(types.LayerID) error) *MockconservativeStateRevertCacheCall
- func (c *MockconservativeStateRevertCacheCall) Return(arg0 error) *MockconservativeStateRevertCacheCall
- type MockconservativeStateUpdateCacheCall
- type MocklayerClock
- type MocklayerClockCurrentLayerCall
- func (c *MocklayerClockCurrentLayerCall) Do(f func() types.LayerID) *MocklayerClockCurrentLayerCall
- func (c *MocklayerClockCurrentLayerCall) DoAndReturn(f func() types.LayerID) *MocklayerClockCurrentLayerCall
- func (c *MocklayerClockCurrentLayerCall) Return(arg0 types.LayerID) *MocklayerClockCurrentLayerCall
- type MocklayerClockMockRecorder
- type MockvmState
- func (m *MockvmState) Apply(arg0 vm.ApplyContext, arg1 []types.Transaction, arg2 []types.CoinbaseReward) ([]types.Transaction, []types.TransactionWithResult, error)
- func (m *MockvmState) EXPECT() *MockvmStateMockRecorder
- func (m *MockvmState) GetStateRoot() (types.Hash32, error)
- func (m *MockvmState) Revert(arg0 types.LayerID) error
- type MockvmStateApplyCall
- type MockvmStateGetStateRootCall
- func (c *MockvmStateGetStateRootCall) Do(f func() (types.Hash32, error)) *MockvmStateGetStateRootCall
- func (c *MockvmStateGetStateRootCall) DoAndReturn(f func() (types.Hash32, error)) *MockvmStateGetStateRootCall
- func (c *MockvmStateGetStateRootCall) Return(arg0 types.Hash32, arg1 error) *MockvmStateGetStateRootCall
- type MockvmStateMockRecorder
- type MockvmStateRevertCall
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 ¶
func (m *MockconservativeState) EXPECT() *MockconservativeStateMockRecorder
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 ¶
func (m *MockconservativeState) UpdateCache(arg0 context.Context, arg1 types.LayerID, arg2 types.BlockID, arg3 []types.TransactionWithResult, arg4 []types.Transaction) error
UpdateCache mocks base method.
type MockconservativeStateLinkTXsWithBlockCall ¶ added in v1.4.0
MockconservativeStateLinkTXsWithBlockCall wrap *gomock.Call
func (*MockconservativeStateLinkTXsWithBlockCall) Do ¶ added in v1.4.0
func (c *MockconservativeStateLinkTXsWithBlockCall) Do(f func(types.LayerID, types.BlockID, []types.TransactionID) error) *MockconservativeStateLinkTXsWithBlockCall
Do rewrite *gomock.Call.Do
func (*MockconservativeStateLinkTXsWithBlockCall) DoAndReturn ¶ added in v1.4.0
func (c *MockconservativeStateLinkTXsWithBlockCall) DoAndReturn(f func(types.LayerID, types.BlockID, []types.TransactionID) error) *MockconservativeStateLinkTXsWithBlockCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockconservativeStateLinkTXsWithBlockCall) Return ¶ added in v1.4.0
func (c *MockconservativeStateLinkTXsWithBlockCall) Return(arg0 error) *MockconservativeStateLinkTXsWithBlockCall
Return rewrite *gomock.Call.Return
type MockconservativeStateLinkTXsWithProposalCall ¶ added in v1.4.0
MockconservativeStateLinkTXsWithProposalCall wrap *gomock.Call
func (*MockconservativeStateLinkTXsWithProposalCall) Do ¶ added in v1.4.0
func (c *MockconservativeStateLinkTXsWithProposalCall) Do(f func(types.LayerID, types.ProposalID, []types.TransactionID) error) *MockconservativeStateLinkTXsWithProposalCall
Do rewrite *gomock.Call.Do
func (*MockconservativeStateLinkTXsWithProposalCall) DoAndReturn ¶ added in v1.4.0
func (c *MockconservativeStateLinkTXsWithProposalCall) DoAndReturn(f func(types.LayerID, types.ProposalID, []types.TransactionID) error) *MockconservativeStateLinkTXsWithProposalCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockconservativeStateLinkTXsWithProposalCall) Return ¶ added in v1.4.0
func (c *MockconservativeStateLinkTXsWithProposalCall) Return(arg0 error) *MockconservativeStateLinkTXsWithProposalCall
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 ¶
func (mr *MockconservativeStateMockRecorder) LinkTXsWithBlock(arg0, arg1, arg2 any) *MockconservativeStateLinkTXsWithBlockCall
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 ¶
func (mr *MockconservativeStateMockRecorder) RevertCache(arg0 any) *MockconservativeStateRevertCacheCall
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
MockconservativeStateRevertCacheCall wrap *gomock.Call
func (*MockconservativeStateRevertCacheCall) Do ¶ added in v1.4.0
func (c *MockconservativeStateRevertCacheCall) Do(f func(types.LayerID) error) *MockconservativeStateRevertCacheCall
Do rewrite *gomock.Call.Do
func (*MockconservativeStateRevertCacheCall) DoAndReturn ¶ added in v1.4.0
func (c *MockconservativeStateRevertCacheCall) DoAndReturn(f func(types.LayerID) error) *MockconservativeStateRevertCacheCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockconservativeStateRevertCacheCall) Return ¶ added in v1.4.0
func (c *MockconservativeStateRevertCacheCall) Return(arg0 error) *MockconservativeStateRevertCacheCall
Return rewrite *gomock.Call.Return
type MockconservativeStateUpdateCacheCall ¶ added in v1.4.0
MockconservativeStateUpdateCacheCall wrap *gomock.Call
func (*MockconservativeStateUpdateCacheCall) Do ¶ added in v1.4.0
func (c *MockconservativeStateUpdateCacheCall) Do(f func(context.Context, types.LayerID, types.BlockID, []types.TransactionWithResult, []types.Transaction) error) *MockconservativeStateUpdateCacheCall
Do rewrite *gomock.Call.Do
func (*MockconservativeStateUpdateCacheCall) DoAndReturn ¶ added in v1.4.0
func (c *MockconservativeStateUpdateCacheCall) DoAndReturn(f func(context.Context, types.LayerID, types.BlockID, []types.TransactionWithResult, []types.Transaction) error) *MockconservativeStateUpdateCacheCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockconservativeStateUpdateCacheCall) Return ¶ added in v1.4.0
func (c *MockconservativeStateUpdateCacheCall) Return(arg0 error) *MockconservativeStateUpdateCacheCall
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 ¶
func (m *MocklayerClock) EXPECT() *MocklayerClockMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MocklayerClockCurrentLayerCall ¶ added in v1.4.0
MocklayerClockCurrentLayerCall wrap *gomock.Call
func (*MocklayerClockCurrentLayerCall) Do ¶ added in v1.4.0
func (c *MocklayerClockCurrentLayerCall) Do(f func() types.LayerID) *MocklayerClockCurrentLayerCall
Do rewrite *gomock.Call.Do
func (*MocklayerClockCurrentLayerCall) DoAndReturn ¶ added in v1.4.0
func (c *MocklayerClockCurrentLayerCall) DoAndReturn(f func() types.LayerID) *MocklayerClockCurrentLayerCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MocklayerClockCurrentLayerCall) Return ¶ added in v1.4.0
func (c *MocklayerClockCurrentLayerCall) Return(arg0 types.LayerID) *MocklayerClockCurrentLayerCall
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 ¶
func (mr *MocklayerClockMockRecorder) CurrentLayer() *MocklayerClockCurrentLayerCall
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 ¶
func (m *MockvmState) Apply(arg0 vm.ApplyContext, arg1 []types.Transaction, arg2 []types.CoinbaseReward) ([]types.Transaction, []types.TransactionWithResult, error)
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.
type MockvmStateApplyCall ¶ added in v1.4.0
MockvmStateApplyCall wrap *gomock.Call
func (*MockvmStateApplyCall) Do ¶ added in v1.4.0
func (c *MockvmStateApplyCall) Do(f func(vm.ApplyContext, []types.Transaction, []types.CoinbaseReward) ([]types.Transaction, []types.TransactionWithResult, error)) *MockvmStateApplyCall
Do rewrite *gomock.Call.Do
func (*MockvmStateApplyCall) DoAndReturn ¶ added in v1.4.0
func (c *MockvmStateApplyCall) DoAndReturn(f func(vm.ApplyContext, []types.Transaction, []types.CoinbaseReward) ([]types.Transaction, []types.TransactionWithResult, error)) *MockvmStateApplyCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockvmStateApplyCall) Return ¶ added in v1.4.0
func (c *MockvmStateApplyCall) Return(arg0 []types.Transaction, arg1 []types.TransactionWithResult, arg2 error) *MockvmStateApplyCall
Return rewrite *gomock.Call.Return
type MockvmStateGetStateRootCall ¶ added in v1.4.0
MockvmStateGetStateRootCall wrap *gomock.Call
func (*MockvmStateGetStateRootCall) Do ¶ added in v1.4.0
func (c *MockvmStateGetStateRootCall) Do(f func() (types.Hash32, error)) *MockvmStateGetStateRootCall
Do rewrite *gomock.Call.Do
func (*MockvmStateGetStateRootCall) DoAndReturn ¶ added in v1.4.0
func (c *MockvmStateGetStateRootCall) DoAndReturn(f func() (types.Hash32, error)) *MockvmStateGetStateRootCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockvmStateGetStateRootCall) Return ¶ added in v1.4.0
func (c *MockvmStateGetStateRootCall) Return(arg0 types.Hash32, arg1 error) *MockvmStateGetStateRootCall
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 ¶
func (mr *MockvmStateMockRecorder) GetStateRoot() *MockvmStateGetStateRootCall
GetStateRoot indicates an expected call of GetStateRoot.
func (*MockvmStateMockRecorder) Revert ¶
func (mr *MockvmStateMockRecorder) Revert(arg0 any) *MockvmStateRevertCall
Revert indicates an expected call of Revert.
type MockvmStateRevertCall ¶ added in v1.4.0
MockvmStateRevertCall wrap *gomock.Call
func (*MockvmStateRevertCall) Do ¶ added in v1.4.0
func (c *MockvmStateRevertCall) Do(f func(types.LayerID) error) *MockvmStateRevertCall
Do rewrite *gomock.Call.Do
func (*MockvmStateRevertCall) DoAndReturn ¶ added in v1.4.0
func (c *MockvmStateRevertCall) DoAndReturn(f func(types.LayerID) error) *MockvmStateRevertCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockvmStateRevertCall) Return ¶ added in v1.4.0
func (c *MockvmStateRevertCall) Return(arg0 error) *MockvmStateRevertCall
Return rewrite *gomock.Call.Return