Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockconservativeState
- func (m *MockconservativeState) ApplyLayer(arg0 *types.Block) ([]*types.Transaction, 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 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
- type Mocktortoise
- type MocktortoiseMockRecorder
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 ¶
func (m *MockconservativeState) ApplyLayer(arg0 *types.Block) ([]*types.Transaction, error)
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 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.
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 ¶
func (m *Mocktortoise) EXPECT() *MocktortoiseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*Mocktortoise) HandleIncomingLayer ¶
HandleIncomingLayer mocks base method.
func (*Mocktortoise) OnBallot ¶
func (m *Mocktortoise) OnBallot(arg0 *types.Ballot)
OnBallot mocks base method.
func (*Mocktortoise) OnBlock ¶
func (m *Mocktortoise) OnBlock(arg0 *types.Block)
OnBlock mocks base method.
type MocktortoiseMockRecorder ¶
type MocktortoiseMockRecorder struct {
// contains filtered or unexported fields
}
MocktortoiseMockRecorder is the mock recorder for Mocktortoise.
func (*MocktortoiseMockRecorder) HandleIncomingLayer ¶
func (mr *MocktortoiseMockRecorder) HandleIncomingLayer(arg0, arg1 interface{}) *gomock.Call
HandleIncomingLayer indicates an expected call of HandleIncomingLayer.
func (*MocktortoiseMockRecorder) OnBallot ¶
func (mr *MocktortoiseMockRecorder) OnBallot(arg0 interface{}) *gomock.Call
OnBallot indicates an expected call of OnBallot.
func (*MocktortoiseMockRecorder) OnBlock ¶
func (mr *MocktortoiseMockRecorder) OnBlock(arg0 interface{}) *gomock.Call
OnBlock indicates an expected call of OnBlock.