Documentation ¶
Overview ¶
Package blockmock is a generated GoMock package.
Package blockmock is a generated GoMock package.
Package blockmock is a generated GoMock package.
Package blockmock is a generated GoMock package.
Index ¶
- type BuildBlockWithContextChainVM
- type BuildBlockWithContextChainVMMockRecorder
- type ChainVM
- func (m *ChainVM) AppGossip(arg0 context.Context, arg1 ids.NodeID, arg2 []byte) error
- func (m *ChainVM) AppRequest(arg0 context.Context, arg1 ids.NodeID, arg2 uint32, arg3 time.Time, ...) error
- func (m *ChainVM) AppRequestFailed(arg0 context.Context, arg1 ids.NodeID, arg2 uint32, arg3 *common.AppError) error
- func (m *ChainVM) AppResponse(arg0 context.Context, arg1 ids.NodeID, arg2 uint32, arg3 []byte) error
- func (m *ChainVM) BuildBlock(arg0 context.Context) (snowman.Block, error)
- func (m *ChainVM) Connected(arg0 context.Context, arg1 ids.NodeID, arg2 *version.Application) error
- func (m *ChainVM) CreateHandlers(arg0 context.Context) (map[string]http.Handler, error)
- func (m *ChainVM) Disconnected(arg0 context.Context, arg1 ids.NodeID) error
- func (m *ChainVM) EXPECT() *ChainVMMockRecorder
- func (m *ChainVM) GetBlock(arg0 context.Context, arg1 ids.ID) (snowman.Block, error)
- func (m *ChainVM) GetBlockIDAtHeight(arg0 context.Context, arg1 uint64) (ids.ID, error)
- func (m *ChainVM) HealthCheck(arg0 context.Context) (any, error)
- func (m *ChainVM) Initialize(arg0 context.Context, arg1 *snow.Context, arg2 database.Database, ...) error
- func (m *ChainVM) LastAccepted(arg0 context.Context) (ids.ID, error)
- func (m *ChainVM) ParseBlock(arg0 context.Context, arg1 []byte) (snowman.Block, error)
- func (m *ChainVM) SetPreference(arg0 context.Context, arg1 ids.ID) error
- func (m *ChainVM) SetState(arg0 context.Context, arg1 snow.State) error
- func (m *ChainVM) Shutdown(arg0 context.Context) error
- func (m *ChainVM) Version(arg0 context.Context) (string, error)
- type ChainVMMockRecorder
- func (mr *ChainVMMockRecorder) AppGossip(arg0, arg1, arg2 any) *gomock.Call
- func (mr *ChainVMMockRecorder) AppRequest(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call
- func (mr *ChainVMMockRecorder) AppRequestFailed(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *ChainVMMockRecorder) AppResponse(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *ChainVMMockRecorder) BuildBlock(arg0 any) *gomock.Call
- func (mr *ChainVMMockRecorder) Connected(arg0, arg1, arg2 any) *gomock.Call
- func (mr *ChainVMMockRecorder) CreateHandlers(arg0 any) *gomock.Call
- func (mr *ChainVMMockRecorder) Disconnected(arg0, arg1 any) *gomock.Call
- func (mr *ChainVMMockRecorder) GetBlock(arg0, arg1 any) *gomock.Call
- func (mr *ChainVMMockRecorder) GetBlockIDAtHeight(arg0, arg1 any) *gomock.Call
- func (mr *ChainVMMockRecorder) HealthCheck(arg0 any) *gomock.Call
- func (mr *ChainVMMockRecorder) Initialize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8 any) *gomock.Call
- func (mr *ChainVMMockRecorder) LastAccepted(arg0 any) *gomock.Call
- func (mr *ChainVMMockRecorder) ParseBlock(arg0, arg1 any) *gomock.Call
- func (mr *ChainVMMockRecorder) SetPreference(arg0, arg1 any) *gomock.Call
- func (mr *ChainVMMockRecorder) SetState(arg0, arg1 any) *gomock.Call
- func (mr *ChainVMMockRecorder) Shutdown(arg0 any) *gomock.Call
- func (mr *ChainVMMockRecorder) Version(arg0 any) *gomock.Call
- type StateSyncableVM
- func (m *StateSyncableVM) EXPECT() *StateSyncableVMMockRecorder
- func (m *StateSyncableVM) GetLastStateSummary(arg0 context.Context) (block.StateSummary, error)
- func (m *StateSyncableVM) GetOngoingSyncStateSummary(arg0 context.Context) (block.StateSummary, error)
- func (m *StateSyncableVM) GetStateSummary(arg0 context.Context, arg1 uint64) (block.StateSummary, error)
- func (m *StateSyncableVM) ParseStateSummary(arg0 context.Context, arg1 []byte) (block.StateSummary, error)
- func (m *StateSyncableVM) StateSyncEnabled(arg0 context.Context) (bool, error)
- type StateSyncableVMMockRecorder
- func (mr *StateSyncableVMMockRecorder) GetLastStateSummary(arg0 any) *gomock.Call
- func (mr *StateSyncableVMMockRecorder) GetOngoingSyncStateSummary(arg0 any) *gomock.Call
- func (mr *StateSyncableVMMockRecorder) GetStateSummary(arg0, arg1 any) *gomock.Call
- func (mr *StateSyncableVMMockRecorder) ParseStateSummary(arg0, arg1 any) *gomock.Call
- func (mr *StateSyncableVMMockRecorder) StateSyncEnabled(arg0 any) *gomock.Call
- type WithVerifyContext
- type WithVerifyContextMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildBlockWithContextChainVM ¶
type BuildBlockWithContextChainVM struct {
// contains filtered or unexported fields
}
BuildBlockWithContextChainVM is a mock of BuildBlockWithContextChainVM interface.
func NewBuildBlockWithContextChainVM ¶
func NewBuildBlockWithContextChainVM(ctrl *gomock.Controller) *BuildBlockWithContextChainVM
NewBuildBlockWithContextChainVM creates a new mock instance.
func (*BuildBlockWithContextChainVM) BuildBlockWithContext ¶
func (m *BuildBlockWithContextChainVM) BuildBlockWithContext(arg0 context.Context, arg1 *block.Context) (snowman.Block, error)
BuildBlockWithContext mocks base method.
func (*BuildBlockWithContextChainVM) EXPECT ¶
func (m *BuildBlockWithContextChainVM) EXPECT() *BuildBlockWithContextChainVMMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type BuildBlockWithContextChainVMMockRecorder ¶
type BuildBlockWithContextChainVMMockRecorder struct {
// contains filtered or unexported fields
}
BuildBlockWithContextChainVMMockRecorder is the mock recorder for BuildBlockWithContextChainVM.
func (*BuildBlockWithContextChainVMMockRecorder) BuildBlockWithContext ¶
func (mr *BuildBlockWithContextChainVMMockRecorder) BuildBlockWithContext(arg0, arg1 any) *gomock.Call
BuildBlockWithContext indicates an expected call of BuildBlockWithContext.
type ChainVM ¶
type ChainVM struct {
// contains filtered or unexported fields
}
ChainVM is a mock of ChainVM interface.
func NewChainVM ¶
func NewChainVM(ctrl *gomock.Controller) *ChainVM
NewChainVM creates a new mock instance.
func (*ChainVM) AppRequest ¶
func (m *ChainVM) AppRequest(arg0 context.Context, arg1 ids.NodeID, arg2 uint32, arg3 time.Time, arg4 []byte) error
AppRequest mocks base method.
func (*ChainVM) AppRequestFailed ¶
func (m *ChainVM) AppRequestFailed(arg0 context.Context, arg1 ids.NodeID, arg2 uint32, arg3 *common.AppError) error
AppRequestFailed mocks base method.
func (*ChainVM) AppResponse ¶
func (m *ChainVM) AppResponse(arg0 context.Context, arg1 ids.NodeID, arg2 uint32, arg3 []byte) error
AppResponse mocks base method.
func (*ChainVM) BuildBlock ¶
BuildBlock mocks base method.
func (*ChainVM) CreateHandlers ¶
CreateHandlers mocks base method.
func (*ChainVM) Disconnected ¶
Disconnected mocks base method.
func (*ChainVM) EXPECT ¶
func (m *ChainVM) EXPECT() *ChainVMMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*ChainVM) GetBlockIDAtHeight ¶
GetBlockIDAtHeight mocks base method.
func (*ChainVM) HealthCheck ¶
HealthCheck mocks base method.
func (*ChainVM) Initialize ¶
func (m *ChainVM) Initialize(arg0 context.Context, arg1 *snow.Context, arg2 database.Database, arg3, arg4, arg5 []byte, arg6 chan<- common.Message, arg7 []*common.Fx, arg8 common.AppSender) error
Initialize mocks base method.
func (*ChainVM) LastAccepted ¶
LastAccepted mocks base method.
func (*ChainVM) ParseBlock ¶
ParseBlock mocks base method.
func (*ChainVM) SetPreference ¶
SetPreference mocks base method.
type ChainVMMockRecorder ¶
type ChainVMMockRecorder struct {
// contains filtered or unexported fields
}
ChainVMMockRecorder is the mock recorder for ChainVM.
func (*ChainVMMockRecorder) AppGossip ¶
func (mr *ChainVMMockRecorder) AppGossip(arg0, arg1, arg2 any) *gomock.Call
AppGossip indicates an expected call of AppGossip.
func (*ChainVMMockRecorder) AppRequest ¶
func (mr *ChainVMMockRecorder) AppRequest(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call
AppRequest indicates an expected call of AppRequest.
func (*ChainVMMockRecorder) AppRequestFailed ¶
func (mr *ChainVMMockRecorder) AppRequestFailed(arg0, arg1, arg2, arg3 any) *gomock.Call
AppRequestFailed indicates an expected call of AppRequestFailed.
func (*ChainVMMockRecorder) AppResponse ¶
func (mr *ChainVMMockRecorder) AppResponse(arg0, arg1, arg2, arg3 any) *gomock.Call
AppResponse indicates an expected call of AppResponse.
func (*ChainVMMockRecorder) BuildBlock ¶
func (mr *ChainVMMockRecorder) BuildBlock(arg0 any) *gomock.Call
BuildBlock indicates an expected call of BuildBlock.
func (*ChainVMMockRecorder) Connected ¶
func (mr *ChainVMMockRecorder) Connected(arg0, arg1, arg2 any) *gomock.Call
Connected indicates an expected call of Connected.
func (*ChainVMMockRecorder) CreateHandlers ¶
func (mr *ChainVMMockRecorder) CreateHandlers(arg0 any) *gomock.Call
CreateHandlers indicates an expected call of CreateHandlers.
func (*ChainVMMockRecorder) Disconnected ¶
func (mr *ChainVMMockRecorder) Disconnected(arg0, arg1 any) *gomock.Call
Disconnected indicates an expected call of Disconnected.
func (*ChainVMMockRecorder) GetBlock ¶
func (mr *ChainVMMockRecorder) GetBlock(arg0, arg1 any) *gomock.Call
GetBlock indicates an expected call of GetBlock.
func (*ChainVMMockRecorder) GetBlockIDAtHeight ¶
func (mr *ChainVMMockRecorder) GetBlockIDAtHeight(arg0, arg1 any) *gomock.Call
GetBlockIDAtHeight indicates an expected call of GetBlockIDAtHeight.
func (*ChainVMMockRecorder) HealthCheck ¶
func (mr *ChainVMMockRecorder) HealthCheck(arg0 any) *gomock.Call
HealthCheck indicates an expected call of HealthCheck.
func (*ChainVMMockRecorder) Initialize ¶
func (mr *ChainVMMockRecorder) Initialize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8 any) *gomock.Call
Initialize indicates an expected call of Initialize.
func (*ChainVMMockRecorder) LastAccepted ¶
func (mr *ChainVMMockRecorder) LastAccepted(arg0 any) *gomock.Call
LastAccepted indicates an expected call of LastAccepted.
func (*ChainVMMockRecorder) ParseBlock ¶
func (mr *ChainVMMockRecorder) ParseBlock(arg0, arg1 any) *gomock.Call
ParseBlock indicates an expected call of ParseBlock.
func (*ChainVMMockRecorder) SetPreference ¶
func (mr *ChainVMMockRecorder) SetPreference(arg0, arg1 any) *gomock.Call
SetPreference indicates an expected call of SetPreference.
func (*ChainVMMockRecorder) SetState ¶
func (mr *ChainVMMockRecorder) SetState(arg0, arg1 any) *gomock.Call
SetState indicates an expected call of SetState.
type StateSyncableVM ¶
type StateSyncableVM struct {
// contains filtered or unexported fields
}
StateSyncableVM is a mock of StateSyncableVM interface.
func NewStateSyncableVM ¶
func NewStateSyncableVM(ctrl *gomock.Controller) *StateSyncableVM
NewStateSyncableVM creates a new mock instance.
func (*StateSyncableVM) EXPECT ¶
func (m *StateSyncableVM) EXPECT() *StateSyncableVMMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*StateSyncableVM) GetLastStateSummary ¶
func (m *StateSyncableVM) GetLastStateSummary(arg0 context.Context) (block.StateSummary, error)
GetLastStateSummary mocks base method.
func (*StateSyncableVM) GetOngoingSyncStateSummary ¶
func (m *StateSyncableVM) GetOngoingSyncStateSummary(arg0 context.Context) (block.StateSummary, error)
GetOngoingSyncStateSummary mocks base method.
func (*StateSyncableVM) GetStateSummary ¶
func (m *StateSyncableVM) GetStateSummary(arg0 context.Context, arg1 uint64) (block.StateSummary, error)
GetStateSummary mocks base method.
func (*StateSyncableVM) ParseStateSummary ¶
func (m *StateSyncableVM) ParseStateSummary(arg0 context.Context, arg1 []byte) (block.StateSummary, error)
ParseStateSummary mocks base method.
func (*StateSyncableVM) StateSyncEnabled ¶
func (m *StateSyncableVM) StateSyncEnabled(arg0 context.Context) (bool, error)
StateSyncEnabled mocks base method.
type StateSyncableVMMockRecorder ¶
type StateSyncableVMMockRecorder struct {
// contains filtered or unexported fields
}
StateSyncableVMMockRecorder is the mock recorder for StateSyncableVM.
func (*StateSyncableVMMockRecorder) GetLastStateSummary ¶
func (mr *StateSyncableVMMockRecorder) GetLastStateSummary(arg0 any) *gomock.Call
GetLastStateSummary indicates an expected call of GetLastStateSummary.
func (*StateSyncableVMMockRecorder) GetOngoingSyncStateSummary ¶
func (mr *StateSyncableVMMockRecorder) GetOngoingSyncStateSummary(arg0 any) *gomock.Call
GetOngoingSyncStateSummary indicates an expected call of GetOngoingSyncStateSummary.
func (*StateSyncableVMMockRecorder) GetStateSummary ¶
func (mr *StateSyncableVMMockRecorder) GetStateSummary(arg0, arg1 any) *gomock.Call
GetStateSummary indicates an expected call of GetStateSummary.
func (*StateSyncableVMMockRecorder) ParseStateSummary ¶
func (mr *StateSyncableVMMockRecorder) ParseStateSummary(arg0, arg1 any) *gomock.Call
ParseStateSummary indicates an expected call of ParseStateSummary.
func (*StateSyncableVMMockRecorder) StateSyncEnabled ¶
func (mr *StateSyncableVMMockRecorder) StateSyncEnabled(arg0 any) *gomock.Call
StateSyncEnabled indicates an expected call of StateSyncEnabled.
type WithVerifyContext ¶
type WithVerifyContext struct {
// contains filtered or unexported fields
}
WithVerifyContext is a mock of WithVerifyContext interface.
func NewWithVerifyContext ¶
func NewWithVerifyContext(ctrl *gomock.Controller) *WithVerifyContext
NewWithVerifyContext creates a new mock instance.
func (*WithVerifyContext) EXPECT ¶
func (m *WithVerifyContext) EXPECT() *WithVerifyContextMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*WithVerifyContext) ShouldVerifyWithContext ¶
func (m *WithVerifyContext) ShouldVerifyWithContext(arg0 context.Context) (bool, error)
ShouldVerifyWithContext mocks base method.
func (*WithVerifyContext) VerifyWithContext ¶
VerifyWithContext mocks base method.
type WithVerifyContextMockRecorder ¶
type WithVerifyContextMockRecorder struct {
// contains filtered or unexported fields
}
WithVerifyContextMockRecorder is the mock recorder for WithVerifyContext.
func (*WithVerifyContextMockRecorder) ShouldVerifyWithContext ¶
func (mr *WithVerifyContextMockRecorder) ShouldVerifyWithContext(arg0 any) *gomock.Call
ShouldVerifyWithContext indicates an expected call of ShouldVerifyWithContext.
func (*WithVerifyContextMockRecorder) VerifyWithContext ¶
func (mr *WithVerifyContextMockRecorder) VerifyWithContext(arg0, arg1 any) *gomock.Call
VerifyWithContext indicates an expected call of VerifyWithContext.