Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockconservativeState
- func (m *MockconservativeState) ApplyLayer(arg0 context.Context, arg1 *types.Block) error
- func (m *MockconservativeState) EXPECT() *MockconservativeStateMockRecorder
- func (m *MockconservativeState) GetStateRoot() (types.Hash32, error)
- 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) RevertState(arg0 types.LayerID) (types.Hash32, error)
- type MockconservativeStateMockRecorder
- func (mr *MockconservativeStateMockRecorder) ApplyLayer(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockconservativeStateMockRecorder) GetStateRoot() *gomock.Call
- func (mr *MockconservativeStateMockRecorder) LinkTXsWithBlock(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockconservativeStateMockRecorder) LinkTXsWithProposal(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockconservativeStateMockRecorder) RevertState(arg0 interface{}) *gomock.Call
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) ApplyLayer ¶
ApplyLayer mocks base method.
func (*MockconservativeState) EXPECT ¶
func (m *MockconservativeState) EXPECT() *MockconservativeStateMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockconservativeState) GetStateRoot ¶
func (m *MockconservativeState) GetStateRoot() (types.Hash32, error)
GetStateRoot mocks base method.
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) RevertState ¶
RevertState mocks base method.
type MockconservativeStateMockRecorder ¶
type MockconservativeStateMockRecorder struct {
// contains filtered or unexported fields
}
MockconservativeStateMockRecorder is the mock recorder for MockconservativeState.
func (*MockconservativeStateMockRecorder) ApplyLayer ¶
func (mr *MockconservativeStateMockRecorder) ApplyLayer(arg0, arg1 interface{}) *gomock.Call
ApplyLayer indicates an expected call of ApplyLayer.
func (*MockconservativeStateMockRecorder) GetStateRoot ¶
func (mr *MockconservativeStateMockRecorder) GetStateRoot() *gomock.Call
GetStateRoot indicates an expected call of GetStateRoot.
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) RevertState ¶
func (mr *MockconservativeStateMockRecorder) RevertState(arg0 interface{}) *gomock.Call
RevertState indicates an expected call of RevertState.