Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type ChainVM
- func (_m *ChainVM) AppGossip(nodeID ids.NodeID, msg []byte) error
- func (_m *ChainVM) AppRequest(nodeID ids.NodeID, requestID uint32, deadline time.Time, request []byte) error
- func (_m *ChainVM) AppRequestFailed(nodeID ids.NodeID, requestID uint32) error
- func (_m *ChainVM) AppResponse(nodeID ids.NodeID, requestID uint32, response []byte) error
- func (_m *ChainVM) BuildBlock() (snowman.Block, error)
- func (_m *ChainVM) Connected(id ids.NodeID, nodeVersion version.Application) error
- func (_m *ChainVM) CreateHandlers() (map[string]*common.HTTPHandler, error)
- func (_m *ChainVM) CreateStaticHandlers() (map[string]*common.HTTPHandler, error)
- func (_m *ChainVM) Disconnected(id ids.NodeID) error
- func (_m *ChainVM) GetBlock(_a0 ids.ID) (snowman.Block, error)
- func (_m *ChainVM) HealthCheck() (interface{}, error)
- func (_m *ChainVM) Initialize(ctx *snow.Context, dbManager manager.Manager, genesisBytes []byte, ...) error
- func (_m *ChainVM) LastAccepted() (ids.ID, error)
- func (_m *ChainVM) ParseBlock(_a0 []byte) (snowman.Block, error)
- func (_m *ChainVM) SetPreference(_a0 ids.ID) error
- func (_m *ChainVM) SetState(state snow.State) error
- func (_m *ChainVM) Shutdown() error
- func (_m *ChainVM) Version() (string, error)
- type MockStateSyncableVM
- func (m *MockStateSyncableVM) EXPECT() *MockStateSyncableVMMockRecorder
- func (m *MockStateSyncableVM) GetLastStateSummary() (block.StateSummary, error)
- func (m *MockStateSyncableVM) GetOngoingSyncStateSummary() (block.StateSummary, error)
- func (m *MockStateSyncableVM) GetStateSummary(summaryHeight uint64) (block.StateSummary, error)
- func (m *MockStateSyncableVM) ParseStateSummary(summaryBytes []byte) (block.StateSummary, error)
- func (m *MockStateSyncableVM) StateSyncEnabled() (bool, error)
- type MockStateSyncableVMMockRecorder
- func (mr *MockStateSyncableVMMockRecorder) GetLastStateSummary() *gomock.Call
- func (mr *MockStateSyncableVMMockRecorder) GetOngoingSyncStateSummary() *gomock.Call
- func (mr *MockStateSyncableVMMockRecorder) GetStateSummary(summaryHeight interface{}) *gomock.Call
- func (mr *MockStateSyncableVMMockRecorder) ParseStateSummary(summaryBytes interface{}) *gomock.Call
- func (mr *MockStateSyncableVMMockRecorder) StateSyncEnabled() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainVM ¶
ChainVM is an autogenerated mock type for the ChainVM type
func (*ChainVM) AppGossip ¶ added in v1.7.4
AppGossip provides a mock function with given fields: nodeID, msg
func (*ChainVM) AppRequest ¶ added in v1.7.4
func (_m *ChainVM) AppRequest(nodeID ids.NodeID, requestID uint32, deadline time.Time, request []byte) error
AppRequest provides a mock function with given fields: nodeID, requestID, deadline, request
func (*ChainVM) AppRequestFailed ¶ added in v1.7.4
AppRequestFailed provides a mock function with given fields: nodeID, requestID
func (*ChainVM) AppResponse ¶ added in v1.7.4
AppResponse provides a mock function with given fields: nodeID, requestID, response
func (*ChainVM) BuildBlock ¶
BuildBlock provides a mock function with given fields:
func (*ChainVM) Connected ¶ added in v1.7.4
Connected provides a mock function with given fields: id, nodeVersion
func (*ChainVM) CreateHandlers ¶
func (_m *ChainVM) CreateHandlers() (map[string]*common.HTTPHandler, error)
CreateHandlers provides a mock function with given fields:
func (*ChainVM) CreateStaticHandlers ¶ added in v1.7.4
func (_m *ChainVM) CreateStaticHandlers() (map[string]*common.HTTPHandler, error)
CreateStaticHandlers provides a mock function with given fields:
func (*ChainVM) Disconnected ¶ added in v1.7.4
Disconnected provides a mock function with given fields: id
func (*ChainVM) HealthCheck ¶
HealthCheck provides a mock function with given fields:
func (*ChainVM) Initialize ¶
func (_m *ChainVM) Initialize(ctx *snow.Context, dbManager manager.Manager, genesisBytes []byte, upgradeBytes []byte, configBytes []byte, toEngine chan<- common.Message, fxs []*common.Fx, appSender common.AppSender) error
Initialize provides a mock function with given fields: ctx, dbManager, genesisBytes, upgradeBytes, configBytes, toEngine, fxs, appSender
func (*ChainVM) LastAccepted ¶
LastAccepted provides a mock function with given fields:
func (*ChainVM) ParseBlock ¶
ParseBlock provides a mock function with given fields: _a0
func (*ChainVM) SetPreference ¶
SetPreference provides a mock function with given fields: _a0
func (*ChainVM) SetState ¶ added in v1.7.5
SetState provides a mock function with given fields: state
type MockStateSyncableVM ¶ added in v1.7.11
type MockStateSyncableVM struct {
// contains filtered or unexported fields
}
MockStateSyncableVM is a mock of StateSyncableVM interface.
func NewMockStateSyncableVM ¶ added in v1.7.11
func NewMockStateSyncableVM(ctrl *gomock.Controller) *MockStateSyncableVM
NewMockStateSyncableVM creates a new mock instance.
func (*MockStateSyncableVM) EXPECT ¶ added in v1.7.11
func (m *MockStateSyncableVM) EXPECT() *MockStateSyncableVMMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStateSyncableVM) GetLastStateSummary ¶ added in v1.7.11
func (m *MockStateSyncableVM) GetLastStateSummary() (block.StateSummary, error)
GetLastStateSummary mocks base method.
func (*MockStateSyncableVM) GetOngoingSyncStateSummary ¶ added in v1.7.11
func (m *MockStateSyncableVM) GetOngoingSyncStateSummary() (block.StateSummary, error)
GetOngoingSyncStateSummary mocks base method.
func (*MockStateSyncableVM) GetStateSummary ¶ added in v1.7.11
func (m *MockStateSyncableVM) GetStateSummary(summaryHeight uint64) (block.StateSummary, error)
GetStateSummary mocks base method.
func (*MockStateSyncableVM) ParseStateSummary ¶ added in v1.7.11
func (m *MockStateSyncableVM) ParseStateSummary(summaryBytes []byte) (block.StateSummary, error)
ParseStateSummary mocks base method.
func (*MockStateSyncableVM) StateSyncEnabled ¶ added in v1.7.11
func (m *MockStateSyncableVM) StateSyncEnabled() (bool, error)
StateSyncEnabled mocks base method.
type MockStateSyncableVMMockRecorder ¶ added in v1.7.11
type MockStateSyncableVMMockRecorder struct {
// contains filtered or unexported fields
}
MockStateSyncableVMMockRecorder is the mock recorder for MockStateSyncableVM.
func (*MockStateSyncableVMMockRecorder) GetLastStateSummary ¶ added in v1.7.11
func (mr *MockStateSyncableVMMockRecorder) GetLastStateSummary() *gomock.Call
GetLastStateSummary indicates an expected call of GetLastStateSummary.
func (*MockStateSyncableVMMockRecorder) GetOngoingSyncStateSummary ¶ added in v1.7.11
func (mr *MockStateSyncableVMMockRecorder) GetOngoingSyncStateSummary() *gomock.Call
GetOngoingSyncStateSummary indicates an expected call of GetOngoingSyncStateSummary.
func (*MockStateSyncableVMMockRecorder) GetStateSummary ¶ added in v1.7.11
func (mr *MockStateSyncableVMMockRecorder) GetStateSummary(summaryHeight interface{}) *gomock.Call
GetStateSummary indicates an expected call of GetStateSummary.
func (*MockStateSyncableVMMockRecorder) ParseStateSummary ¶ added in v1.7.11
func (mr *MockStateSyncableVMMockRecorder) ParseStateSummary(summaryBytes interface{}) *gomock.Call
ParseStateSummary indicates an expected call of ParseStateSummary.
func (*MockStateSyncableVMMockRecorder) StateSyncEnabled ¶ added in v1.7.11
func (mr *MockStateSyncableVMMockRecorder) StateSyncEnabled() *gomock.Call
StateSyncEnabled indicates an expected call of StateSyncEnabled.