Documentation ¶
Overview ¶
Package vertexmock is a generated GoMock package.
Index ¶
- type LinearizableVM
- func (m *LinearizableVM) AppGossip(ctx context.Context, nodeID ids.NodeID, msg []byte) error
- func (m *LinearizableVM) AppRequest(ctx context.Context, nodeID ids.NodeID, requestID uint32, deadline time.Time, ...) error
- func (m *LinearizableVM) AppRequestFailed(ctx context.Context, nodeID ids.NodeID, requestID uint32, ...) error
- func (m *LinearizableVM) AppResponse(ctx context.Context, nodeID ids.NodeID, requestID uint32, response []byte) error
- func (m *LinearizableVM) BuildBlock(arg0 context.Context) (snowman.Block, error)
- func (m *LinearizableVM) Connected(ctx context.Context, nodeID ids.NodeID, nodeVersion *version.Application) error
- func (m *LinearizableVM) CreateHandlers(arg0 context.Context) (map[string]http.Handler, error)
- func (m *LinearizableVM) Disconnected(ctx context.Context, nodeID ids.NodeID) error
- func (m *LinearizableVM) EXPECT() *LinearizableVMMockRecorder
- func (m *LinearizableVM) GetBlock(ctx context.Context, blkID ids.ID) (snowman.Block, error)
- func (m *LinearizableVM) GetBlockIDAtHeight(ctx context.Context, height uint64) (ids.ID, error)
- func (m *LinearizableVM) HealthCheck(arg0 context.Context) (any, error)
- func (m *LinearizableVM) Initialize(ctx context.Context, chainCtx *snow.Context, db database.Database, ...) error
- func (m *LinearizableVM) LastAccepted(arg0 context.Context) (ids.ID, error)
- func (m *LinearizableVM) Linearize(ctx context.Context, stopVertexID ids.ID) error
- func (m *LinearizableVM) ParseBlock(ctx context.Context, blockBytes []byte) (snowman.Block, error)
- func (m *LinearizableVM) ParseTx(ctx context.Context, txBytes []byte) (snowstorm.Tx, error)
- func (m *LinearizableVM) SetPreference(ctx context.Context, blkID ids.ID) error
- func (m *LinearizableVM) SetState(ctx context.Context, state snow.State) error
- func (m *LinearizableVM) Shutdown(arg0 context.Context) error
- func (m *LinearizableVM) Version(arg0 context.Context) (string, error)
- type LinearizableVMMockRecorder
- func (mr *LinearizableVMMockRecorder) AppGossip(ctx, nodeID, msg any) *gomock.Call
- func (mr *LinearizableVMMockRecorder) AppRequest(ctx, nodeID, requestID, deadline, request any) *gomock.Call
- func (mr *LinearizableVMMockRecorder) AppRequestFailed(ctx, nodeID, requestID, appErr any) *gomock.Call
- func (mr *LinearizableVMMockRecorder) AppResponse(ctx, nodeID, requestID, response any) *gomock.Call
- func (mr *LinearizableVMMockRecorder) BuildBlock(arg0 any) *gomock.Call
- func (mr *LinearizableVMMockRecorder) Connected(ctx, nodeID, nodeVersion any) *gomock.Call
- func (mr *LinearizableVMMockRecorder) CreateHandlers(arg0 any) *gomock.Call
- func (mr *LinearizableVMMockRecorder) Disconnected(ctx, nodeID any) *gomock.Call
- func (mr *LinearizableVMMockRecorder) GetBlock(ctx, blkID any) *gomock.Call
- func (mr *LinearizableVMMockRecorder) GetBlockIDAtHeight(ctx, height any) *gomock.Call
- func (mr *LinearizableVMMockRecorder) HealthCheck(arg0 any) *gomock.Call
- func (mr *LinearizableVMMockRecorder) Initialize(...) *gomock.Call
- func (mr *LinearizableVMMockRecorder) LastAccepted(arg0 any) *gomock.Call
- func (mr *LinearizableVMMockRecorder) Linearize(ctx, stopVertexID any) *gomock.Call
- func (mr *LinearizableVMMockRecorder) ParseBlock(ctx, blockBytes any) *gomock.Call
- func (mr *LinearizableVMMockRecorder) ParseTx(ctx, txBytes any) *gomock.Call
- func (mr *LinearizableVMMockRecorder) SetPreference(ctx, blkID any) *gomock.Call
- func (mr *LinearizableVMMockRecorder) SetState(ctx, state any) *gomock.Call
- func (mr *LinearizableVMMockRecorder) Shutdown(arg0 any) *gomock.Call
- func (mr *LinearizableVMMockRecorder) Version(arg0 any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LinearizableVM ¶
type LinearizableVM struct {
// contains filtered or unexported fields
}
LinearizableVM is a mock of LinearizableVM interface.
func NewLinearizableVM ¶
func NewLinearizableVM(ctrl *gomock.Controller) *LinearizableVM
NewLinearizableVM creates a new mock instance.
func (*LinearizableVM) AppRequest ¶
func (m *LinearizableVM) AppRequest(ctx context.Context, nodeID ids.NodeID, requestID uint32, deadline time.Time, request []byte) error
AppRequest mocks base method.
func (*LinearizableVM) AppRequestFailed ¶
func (m *LinearizableVM) AppRequestFailed(ctx context.Context, nodeID ids.NodeID, requestID uint32, appErr *common.AppError) error
AppRequestFailed mocks base method.
func (*LinearizableVM) AppResponse ¶
func (m *LinearizableVM) AppResponse(ctx context.Context, nodeID ids.NodeID, requestID uint32, response []byte) error
AppResponse mocks base method.
func (*LinearizableVM) BuildBlock ¶
BuildBlock mocks base method.
func (*LinearizableVM) Connected ¶
func (m *LinearizableVM) Connected(ctx context.Context, nodeID ids.NodeID, nodeVersion *version.Application) error
Connected mocks base method.
func (*LinearizableVM) CreateHandlers ¶
CreateHandlers mocks base method.
func (*LinearizableVM) Disconnected ¶
Disconnected mocks base method.
func (*LinearizableVM) EXPECT ¶
func (m *LinearizableVM) EXPECT() *LinearizableVMMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*LinearizableVM) GetBlockIDAtHeight ¶
GetBlockIDAtHeight mocks base method.
func (*LinearizableVM) HealthCheck ¶
func (m *LinearizableVM) HealthCheck(arg0 context.Context) (any, error)
HealthCheck mocks base method.
func (*LinearizableVM) Initialize ¶
func (m *LinearizableVM) Initialize(ctx context.Context, chainCtx *snow.Context, db database.Database, genesisBytes, upgradeBytes, configBytes []byte, toEngine chan<- common.Message, fxs []*common.Fx, appSender common.AppSender) error
Initialize mocks base method.
func (*LinearizableVM) LastAccepted ¶
LastAccepted mocks base method.
func (*LinearizableVM) ParseBlock ¶
ParseBlock mocks base method.
func (*LinearizableVM) SetPreference ¶
SetPreference mocks base method.
type LinearizableVMMockRecorder ¶
type LinearizableVMMockRecorder struct {
// contains filtered or unexported fields
}
LinearizableVMMockRecorder is the mock recorder for LinearizableVM.
func (*LinearizableVMMockRecorder) AppGossip ¶
func (mr *LinearizableVMMockRecorder) AppGossip(ctx, nodeID, msg any) *gomock.Call
AppGossip indicates an expected call of AppGossip.
func (*LinearizableVMMockRecorder) AppRequest ¶
func (mr *LinearizableVMMockRecorder) AppRequest(ctx, nodeID, requestID, deadline, request any) *gomock.Call
AppRequest indicates an expected call of AppRequest.
func (*LinearizableVMMockRecorder) AppRequestFailed ¶
func (mr *LinearizableVMMockRecorder) AppRequestFailed(ctx, nodeID, requestID, appErr any) *gomock.Call
AppRequestFailed indicates an expected call of AppRequestFailed.
func (*LinearizableVMMockRecorder) AppResponse ¶
func (mr *LinearizableVMMockRecorder) AppResponse(ctx, nodeID, requestID, response any) *gomock.Call
AppResponse indicates an expected call of AppResponse.
func (*LinearizableVMMockRecorder) BuildBlock ¶
func (mr *LinearizableVMMockRecorder) BuildBlock(arg0 any) *gomock.Call
BuildBlock indicates an expected call of BuildBlock.
func (*LinearizableVMMockRecorder) Connected ¶
func (mr *LinearizableVMMockRecorder) Connected(ctx, nodeID, nodeVersion any) *gomock.Call
Connected indicates an expected call of Connected.
func (*LinearizableVMMockRecorder) CreateHandlers ¶
func (mr *LinearizableVMMockRecorder) CreateHandlers(arg0 any) *gomock.Call
CreateHandlers indicates an expected call of CreateHandlers.
func (*LinearizableVMMockRecorder) Disconnected ¶
func (mr *LinearizableVMMockRecorder) Disconnected(ctx, nodeID any) *gomock.Call
Disconnected indicates an expected call of Disconnected.
func (*LinearizableVMMockRecorder) GetBlock ¶
func (mr *LinearizableVMMockRecorder) GetBlock(ctx, blkID any) *gomock.Call
GetBlock indicates an expected call of GetBlock.
func (*LinearizableVMMockRecorder) GetBlockIDAtHeight ¶
func (mr *LinearizableVMMockRecorder) GetBlockIDAtHeight(ctx, height any) *gomock.Call
GetBlockIDAtHeight indicates an expected call of GetBlockIDAtHeight.
func (*LinearizableVMMockRecorder) HealthCheck ¶
func (mr *LinearizableVMMockRecorder) HealthCheck(arg0 any) *gomock.Call
HealthCheck indicates an expected call of HealthCheck.
func (*LinearizableVMMockRecorder) Initialize ¶
func (mr *LinearizableVMMockRecorder) Initialize(ctx, chainCtx, db, genesisBytes, upgradeBytes, configBytes, toEngine, fxs, appSender any) *gomock.Call
Initialize indicates an expected call of Initialize.
func (*LinearizableVMMockRecorder) LastAccepted ¶
func (mr *LinearizableVMMockRecorder) LastAccepted(arg0 any) *gomock.Call
LastAccepted indicates an expected call of LastAccepted.
func (*LinearizableVMMockRecorder) Linearize ¶
func (mr *LinearizableVMMockRecorder) Linearize(ctx, stopVertexID any) *gomock.Call
Linearize indicates an expected call of Linearize.
func (*LinearizableVMMockRecorder) ParseBlock ¶
func (mr *LinearizableVMMockRecorder) ParseBlock(ctx, blockBytes any) *gomock.Call
ParseBlock indicates an expected call of ParseBlock.
func (*LinearizableVMMockRecorder) ParseTx ¶
func (mr *LinearizableVMMockRecorder) ParseTx(ctx, txBytes any) *gomock.Call
ParseTx indicates an expected call of ParseTx.
func (*LinearizableVMMockRecorder) SetPreference ¶
func (mr *LinearizableVMMockRecorder) SetPreference(ctx, blkID any) *gomock.Call
SetPreference indicates an expected call of SetPreference.
func (*LinearizableVMMockRecorder) SetState ¶
func (mr *LinearizableVMMockRecorder) SetState(ctx, state any) *gomock.Call
SetState indicates an expected call of SetState.