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 MockconservativeStateMockRecorder
- func (mr *MockconservativeStateMockRecorder) LinkTXsWithBlock(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockconservativeStateMockRecorder) LinkTXsWithProposal(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockconservativeStateMockRecorder) RevertCache(arg0 interface{}) *gomock.Call
- func (mr *MockconservativeStateMockRecorder) UpdateCache(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- type MocklayerClock
- 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 MockvmStateMockRecorder
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 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 interface{}) *gomock.Call
LinkTXsWithBlock indicates an expected call of LinkTXsWithBlock.
func (*MockconservativeStateMockRecorder) LinkTXsWithProposal ¶
func (mr *MockconservativeStateMockRecorder) LinkTXsWithProposal(arg0, arg1, arg2 interface{}) *gomock.Call
LinkTXsWithProposal indicates an expected call of LinkTXsWithProposal.
func (*MockconservativeStateMockRecorder) RevertCache ¶
func (mr *MockconservativeStateMockRecorder) RevertCache(arg0 interface{}) *gomock.Call
RevertCache indicates an expected call of RevertCache.
func (*MockconservativeStateMockRecorder) UpdateCache ¶
func (mr *MockconservativeStateMockRecorder) UpdateCache(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
UpdateCache indicates an expected call of UpdateCache.
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 MocklayerClockMockRecorder ¶
type MocklayerClockMockRecorder struct {
// contains filtered or unexported fields
}
MocklayerClockMockRecorder is the mock recorder for MocklayerClock.
func (*MocklayerClockMockRecorder) CurrentLayer ¶
func (mr *MocklayerClockMockRecorder) CurrentLayer() *gomock.Call
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 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 interface{}) *gomock.Call
Apply indicates an expected call of Apply.
func (*MockvmStateMockRecorder) GetStateRoot ¶
func (mr *MockvmStateMockRecorder) GetStateRoot() *gomock.Call
GetStateRoot indicates an expected call of GetStateRoot.
func (*MockvmStateMockRecorder) Revert ¶
func (mr *MockvmStateMockRecorder) Revert(arg0 interface{}) *gomock.Call
Revert indicates an expected call of Revert.