Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockBuildBlockWithContextChainVM
- type MockBuildBlockWithContextChainVMMockRecorder
- type MockChainVM
- func (m *MockChainVM) AppGossip(arg0 context.Context, arg1 ids.NodeID, arg2 []byte) error
- func (m *MockChainVM) AppRequest(arg0 context.Context, arg1 ids.NodeID, arg2 uint32, arg3 time.Time, ...) error
- func (m *MockChainVM) AppRequestFailed(arg0 context.Context, arg1 ids.NodeID, arg2 uint32) error
- func (m *MockChainVM) AppResponse(arg0 context.Context, arg1 ids.NodeID, arg2 uint32, arg3 []byte) error
- func (m *MockChainVM) BuildBlock(arg0 context.Context) (snowman.Block, error)
- func (m *MockChainVM) Connected(arg0 context.Context, arg1 ids.NodeID, arg2 *version.Application) error
- func (m *MockChainVM) CreateHandlers(arg0 context.Context) (map[string]*common.HTTPHandler, error)
- func (m *MockChainVM) CreateStaticHandlers(arg0 context.Context) (map[string]*common.HTTPHandler, error)
- func (m *MockChainVM) CrossChainAppRequest(arg0 context.Context, arg1 ids.ID, arg2 uint32, arg3 time.Time, arg4 []byte) error
- func (m *MockChainVM) CrossChainAppRequestFailed(arg0 context.Context, arg1 ids.ID, arg2 uint32) error
- func (m *MockChainVM) CrossChainAppResponse(arg0 context.Context, arg1 ids.ID, arg2 uint32, arg3 []byte) error
- func (m *MockChainVM) Disconnected(arg0 context.Context, arg1 ids.NodeID) error
- func (m *MockChainVM) EXPECT() *MockChainVMMockRecorder
- func (m *MockChainVM) GetBlock(arg0 context.Context, arg1 ids.ID) (snowman.Block, error)
- func (m *MockChainVM) GetBlockIDAtHeight(arg0 context.Context, arg1 uint64) (ids.ID, error)
- func (m *MockChainVM) HealthCheck(arg0 context.Context) (interface{}, error)
- func (m *MockChainVM) Initialize(arg0 context.Context, arg1 *snow.Context, arg2 manager.Manager, ...) error
- func (m *MockChainVM) LastAccepted(arg0 context.Context) (ids.ID, error)
- func (m *MockChainVM) ParseBlock(arg0 context.Context, arg1 []byte) (snowman.Block, error)
- func (m *MockChainVM) SetPreference(arg0 context.Context, arg1 ids.ID) error
- func (m *MockChainVM) SetState(arg0 context.Context, arg1 snow.State) error
- func (m *MockChainVM) Shutdown(arg0 context.Context) error
- func (m *MockChainVM) VerifyHeightIndex(arg0 context.Context) error
- func (m *MockChainVM) Version(arg0 context.Context) (string, error)
- type MockChainVMMockRecorder
- func (mr *MockChainVMMockRecorder) AppGossip(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockChainVMMockRecorder) AppRequest(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockChainVMMockRecorder) AppRequestFailed(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockChainVMMockRecorder) AppResponse(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockChainVMMockRecorder) BuildBlock(arg0 interface{}) *gomock.Call
- func (mr *MockChainVMMockRecorder) Connected(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockChainVMMockRecorder) CreateHandlers(arg0 interface{}) *gomock.Call
- func (mr *MockChainVMMockRecorder) CreateStaticHandlers(arg0 interface{}) *gomock.Call
- func (mr *MockChainVMMockRecorder) CrossChainAppRequest(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockChainVMMockRecorder) CrossChainAppRequestFailed(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockChainVMMockRecorder) CrossChainAppResponse(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockChainVMMockRecorder) Disconnected(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockChainVMMockRecorder) GetBlock(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockChainVMMockRecorder) GetBlockIDAtHeight(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockChainVMMockRecorder) HealthCheck(arg0 interface{}) *gomock.Call
- func (mr *MockChainVMMockRecorder) Initialize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8 interface{}) *gomock.Call
- func (mr *MockChainVMMockRecorder) LastAccepted(arg0 interface{}) *gomock.Call
- func (mr *MockChainVMMockRecorder) ParseBlock(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockChainVMMockRecorder) SetPreference(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockChainVMMockRecorder) SetState(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockChainVMMockRecorder) Shutdown(arg0 interface{}) *gomock.Call
- func (mr *MockChainVMMockRecorder) VerifyHeightIndex(arg0 interface{}) *gomock.Call
- func (mr *MockChainVMMockRecorder) Version(arg0 interface{}) *gomock.Call
- type MockStateSyncableVM
- func (m *MockStateSyncableVM) EXPECT() *MockStateSyncableVMMockRecorder
- func (m *MockStateSyncableVM) GetLastStateSummary(arg0 context.Context) (block.StateSummary, error)
- func (m *MockStateSyncableVM) GetOngoingSyncStateSummary(arg0 context.Context) (block.StateSummary, error)
- func (m *MockStateSyncableVM) GetStateSummary(arg0 context.Context, arg1 uint64) (block.StateSummary, error)
- func (m *MockStateSyncableVM) ParseStateSummary(arg0 context.Context, arg1 []byte) (block.StateSummary, error)
- func (m *MockStateSyncableVM) StateSyncEnabled(arg0 context.Context) (bool, error)
- type MockStateSyncableVMMockRecorder
- func (mr *MockStateSyncableVMMockRecorder) GetLastStateSummary(arg0 interface{}) *gomock.Call
- func (mr *MockStateSyncableVMMockRecorder) GetOngoingSyncStateSummary(arg0 interface{}) *gomock.Call
- func (mr *MockStateSyncableVMMockRecorder) GetStateSummary(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStateSyncableVMMockRecorder) ParseStateSummary(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStateSyncableVMMockRecorder) StateSyncEnabled(arg0 interface{}) *gomock.Call
- type MockWithVerifyContext
- type MockWithVerifyContextMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBuildBlockWithContextChainVM ¶
type MockBuildBlockWithContextChainVM struct {
// contains filtered or unexported fields
}
MockBuildBlockWithContextChainVM is a mock of BuildBlockWithContextChainVM interface.
func NewMockBuildBlockWithContextChainVM ¶
func NewMockBuildBlockWithContextChainVM(ctrl *gomock.Controller) *MockBuildBlockWithContextChainVM
NewMockBuildBlockWithContextChainVM creates a new mock instance.
func (*MockBuildBlockWithContextChainVM) BuildBlockWithContext ¶
func (m *MockBuildBlockWithContextChainVM) BuildBlockWithContext(arg0 context.Context, arg1 *block.Context) (snowman.Block, error)
BuildBlockWithContext mocks base method.
func (*MockBuildBlockWithContextChainVM) EXPECT ¶
func (m *MockBuildBlockWithContextChainVM) EXPECT() *MockBuildBlockWithContextChainVMMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockBuildBlockWithContextChainVMMockRecorder ¶
type MockBuildBlockWithContextChainVMMockRecorder struct {
// contains filtered or unexported fields
}
MockBuildBlockWithContextChainVMMockRecorder is the mock recorder for MockBuildBlockWithContextChainVM.
func (*MockBuildBlockWithContextChainVMMockRecorder) BuildBlockWithContext ¶
func (mr *MockBuildBlockWithContextChainVMMockRecorder) BuildBlockWithContext(arg0, arg1 interface{}) *gomock.Call
BuildBlockWithContext indicates an expected call of BuildBlockWithContext.
type MockChainVM ¶
type MockChainVM struct {
// contains filtered or unexported fields
}
MockChainVM is a mock of ChainVM interface.
func NewMockChainVM ¶
func NewMockChainVM(ctrl *gomock.Controller) *MockChainVM
NewMockChainVM creates a new mock instance.
func (*MockChainVM) AppRequest ¶
func (m *MockChainVM) AppRequest(arg0 context.Context, arg1 ids.NodeID, arg2 uint32, arg3 time.Time, arg4 []byte) error
AppRequest mocks base method.
func (*MockChainVM) AppRequestFailed ¶
AppRequestFailed mocks base method.
func (*MockChainVM) AppResponse ¶
func (m *MockChainVM) AppResponse(arg0 context.Context, arg1 ids.NodeID, arg2 uint32, arg3 []byte) error
AppResponse mocks base method.
func (*MockChainVM) BuildBlock ¶
BuildBlock mocks base method.
func (*MockChainVM) Connected ¶
func (m *MockChainVM) Connected(arg0 context.Context, arg1 ids.NodeID, arg2 *version.Application) error
Connected mocks base method.
func (*MockChainVM) CreateHandlers ¶
func (m *MockChainVM) CreateHandlers(arg0 context.Context) (map[string]*common.HTTPHandler, error)
CreateHandlers mocks base method.
func (*MockChainVM) CreateStaticHandlers ¶
func (m *MockChainVM) CreateStaticHandlers(arg0 context.Context) (map[string]*common.HTTPHandler, error)
CreateStaticHandlers mocks base method.
func (*MockChainVM) CrossChainAppRequest ¶
func (m *MockChainVM) CrossChainAppRequest(arg0 context.Context, arg1 ids.ID, arg2 uint32, arg3 time.Time, arg4 []byte) error
CrossChainAppRequest mocks base method.
func (*MockChainVM) CrossChainAppRequestFailed ¶
func (m *MockChainVM) CrossChainAppRequestFailed(arg0 context.Context, arg1 ids.ID, arg2 uint32) error
CrossChainAppRequestFailed mocks base method.
func (*MockChainVM) CrossChainAppResponse ¶
func (m *MockChainVM) CrossChainAppResponse(arg0 context.Context, arg1 ids.ID, arg2 uint32, arg3 []byte) error
CrossChainAppResponse mocks base method.
func (*MockChainVM) Disconnected ¶
Disconnected mocks base method.
func (*MockChainVM) EXPECT ¶
func (m *MockChainVM) EXPECT() *MockChainVMMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockChainVM) GetBlockIDAtHeight ¶
GetBlockIDAtHeight mocks base method.
func (*MockChainVM) HealthCheck ¶
func (m *MockChainVM) HealthCheck(arg0 context.Context) (interface{}, error)
HealthCheck mocks base method.
func (*MockChainVM) Initialize ¶
func (m *MockChainVM) Initialize(arg0 context.Context, arg1 *snow.Context, arg2 manager.Manager, arg3, arg4, arg5 []byte, arg6 chan<- common.Message, arg7 []*common.Fx, arg8 common.AppSender) error
Initialize mocks base method.
func (*MockChainVM) LastAccepted ¶
LastAccepted mocks base method.
func (*MockChainVM) ParseBlock ¶
ParseBlock mocks base method.
func (*MockChainVM) SetPreference ¶
SetPreference mocks base method.
func (*MockChainVM) Shutdown ¶
func (m *MockChainVM) Shutdown(arg0 context.Context) error
Shutdown mocks base method.
func (*MockChainVM) VerifyHeightIndex ¶
func (m *MockChainVM) VerifyHeightIndex(arg0 context.Context) error
VerifyHeightIndex mocks base method.
type MockChainVMMockRecorder ¶
type MockChainVMMockRecorder struct {
// contains filtered or unexported fields
}
MockChainVMMockRecorder is the mock recorder for MockChainVM.
func (*MockChainVMMockRecorder) AppGossip ¶
func (mr *MockChainVMMockRecorder) AppGossip(arg0, arg1, arg2 interface{}) *gomock.Call
AppGossip indicates an expected call of AppGossip.
func (*MockChainVMMockRecorder) AppRequest ¶
func (mr *MockChainVMMockRecorder) AppRequest(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
AppRequest indicates an expected call of AppRequest.
func (*MockChainVMMockRecorder) AppRequestFailed ¶
func (mr *MockChainVMMockRecorder) AppRequestFailed(arg0, arg1, arg2 interface{}) *gomock.Call
AppRequestFailed indicates an expected call of AppRequestFailed.
func (*MockChainVMMockRecorder) AppResponse ¶
func (mr *MockChainVMMockRecorder) AppResponse(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
AppResponse indicates an expected call of AppResponse.
func (*MockChainVMMockRecorder) BuildBlock ¶
func (mr *MockChainVMMockRecorder) BuildBlock(arg0 interface{}) *gomock.Call
BuildBlock indicates an expected call of BuildBlock.
func (*MockChainVMMockRecorder) Connected ¶
func (mr *MockChainVMMockRecorder) Connected(arg0, arg1, arg2 interface{}) *gomock.Call
Connected indicates an expected call of Connected.
func (*MockChainVMMockRecorder) CreateHandlers ¶
func (mr *MockChainVMMockRecorder) CreateHandlers(arg0 interface{}) *gomock.Call
CreateHandlers indicates an expected call of CreateHandlers.
func (*MockChainVMMockRecorder) CreateStaticHandlers ¶
func (mr *MockChainVMMockRecorder) CreateStaticHandlers(arg0 interface{}) *gomock.Call
CreateStaticHandlers indicates an expected call of CreateStaticHandlers.
func (*MockChainVMMockRecorder) CrossChainAppRequest ¶
func (mr *MockChainVMMockRecorder) CrossChainAppRequest(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
CrossChainAppRequest indicates an expected call of CrossChainAppRequest.
func (*MockChainVMMockRecorder) CrossChainAppRequestFailed ¶
func (mr *MockChainVMMockRecorder) CrossChainAppRequestFailed(arg0, arg1, arg2 interface{}) *gomock.Call
CrossChainAppRequestFailed indicates an expected call of CrossChainAppRequestFailed.
func (*MockChainVMMockRecorder) CrossChainAppResponse ¶
func (mr *MockChainVMMockRecorder) CrossChainAppResponse(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
CrossChainAppResponse indicates an expected call of CrossChainAppResponse.
func (*MockChainVMMockRecorder) Disconnected ¶
func (mr *MockChainVMMockRecorder) Disconnected(arg0, arg1 interface{}) *gomock.Call
Disconnected indicates an expected call of Disconnected.
func (*MockChainVMMockRecorder) GetBlock ¶
func (mr *MockChainVMMockRecorder) GetBlock(arg0, arg1 interface{}) *gomock.Call
GetBlock indicates an expected call of GetBlock.
func (*MockChainVMMockRecorder) GetBlockIDAtHeight ¶
func (mr *MockChainVMMockRecorder) GetBlockIDAtHeight(arg0, arg1 interface{}) *gomock.Call
GetBlockIDAtHeight indicates an expected call of GetBlockIDAtHeight.
func (*MockChainVMMockRecorder) HealthCheck ¶
func (mr *MockChainVMMockRecorder) HealthCheck(arg0 interface{}) *gomock.Call
HealthCheck indicates an expected call of HealthCheck.
func (*MockChainVMMockRecorder) Initialize ¶
func (mr *MockChainVMMockRecorder) Initialize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8 interface{}) *gomock.Call
Initialize indicates an expected call of Initialize.
func (*MockChainVMMockRecorder) LastAccepted ¶
func (mr *MockChainVMMockRecorder) LastAccepted(arg0 interface{}) *gomock.Call
LastAccepted indicates an expected call of LastAccepted.
func (*MockChainVMMockRecorder) ParseBlock ¶
func (mr *MockChainVMMockRecorder) ParseBlock(arg0, arg1 interface{}) *gomock.Call
ParseBlock indicates an expected call of ParseBlock.
func (*MockChainVMMockRecorder) SetPreference ¶
func (mr *MockChainVMMockRecorder) SetPreference(arg0, arg1 interface{}) *gomock.Call
SetPreference indicates an expected call of SetPreference.
func (*MockChainVMMockRecorder) SetState ¶
func (mr *MockChainVMMockRecorder) SetState(arg0, arg1 interface{}) *gomock.Call
SetState indicates an expected call of SetState.
func (*MockChainVMMockRecorder) Shutdown ¶
func (mr *MockChainVMMockRecorder) Shutdown(arg0 interface{}) *gomock.Call
Shutdown indicates an expected call of Shutdown.
func (*MockChainVMMockRecorder) VerifyHeightIndex ¶
func (mr *MockChainVMMockRecorder) VerifyHeightIndex(arg0 interface{}) *gomock.Call
VerifyHeightIndex indicates an expected call of VerifyHeightIndex.
func (*MockChainVMMockRecorder) Version ¶
func (mr *MockChainVMMockRecorder) Version(arg0 interface{}) *gomock.Call
Version indicates an expected call of Version.
type MockStateSyncableVM ¶
type MockStateSyncableVM struct {
// contains filtered or unexported fields
}
MockStateSyncableVM is a mock of StateSyncableVM interface.
func NewMockStateSyncableVM ¶
func NewMockStateSyncableVM(ctrl *gomock.Controller) *MockStateSyncableVM
NewMockStateSyncableVM creates a new mock instance.
func (*MockStateSyncableVM) EXPECT ¶
func (m *MockStateSyncableVM) EXPECT() *MockStateSyncableVMMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStateSyncableVM) GetLastStateSummary ¶
func (m *MockStateSyncableVM) GetLastStateSummary(arg0 context.Context) (block.StateSummary, error)
GetLastStateSummary mocks base method.
func (*MockStateSyncableVM) GetOngoingSyncStateSummary ¶
func (m *MockStateSyncableVM) GetOngoingSyncStateSummary(arg0 context.Context) (block.StateSummary, error)
GetOngoingSyncStateSummary mocks base method.
func (*MockStateSyncableVM) GetStateSummary ¶
func (m *MockStateSyncableVM) GetStateSummary(arg0 context.Context, arg1 uint64) (block.StateSummary, error)
GetStateSummary mocks base method.
func (*MockStateSyncableVM) ParseStateSummary ¶
func (m *MockStateSyncableVM) ParseStateSummary(arg0 context.Context, arg1 []byte) (block.StateSummary, error)
ParseStateSummary mocks base method.
func (*MockStateSyncableVM) StateSyncEnabled ¶
func (m *MockStateSyncableVM) StateSyncEnabled(arg0 context.Context) (bool, error)
StateSyncEnabled mocks base method.
type MockStateSyncableVMMockRecorder ¶
type MockStateSyncableVMMockRecorder struct {
// contains filtered or unexported fields
}
MockStateSyncableVMMockRecorder is the mock recorder for MockStateSyncableVM.
func (*MockStateSyncableVMMockRecorder) GetLastStateSummary ¶
func (mr *MockStateSyncableVMMockRecorder) GetLastStateSummary(arg0 interface{}) *gomock.Call
GetLastStateSummary indicates an expected call of GetLastStateSummary.
func (*MockStateSyncableVMMockRecorder) GetOngoingSyncStateSummary ¶
func (mr *MockStateSyncableVMMockRecorder) GetOngoingSyncStateSummary(arg0 interface{}) *gomock.Call
GetOngoingSyncStateSummary indicates an expected call of GetOngoingSyncStateSummary.
func (*MockStateSyncableVMMockRecorder) GetStateSummary ¶
func (mr *MockStateSyncableVMMockRecorder) GetStateSummary(arg0, arg1 interface{}) *gomock.Call
GetStateSummary indicates an expected call of GetStateSummary.
func (*MockStateSyncableVMMockRecorder) ParseStateSummary ¶
func (mr *MockStateSyncableVMMockRecorder) ParseStateSummary(arg0, arg1 interface{}) *gomock.Call
ParseStateSummary indicates an expected call of ParseStateSummary.
func (*MockStateSyncableVMMockRecorder) StateSyncEnabled ¶
func (mr *MockStateSyncableVMMockRecorder) StateSyncEnabled(arg0 interface{}) *gomock.Call
StateSyncEnabled indicates an expected call of StateSyncEnabled.
type MockWithVerifyContext ¶
type MockWithVerifyContext struct {
// contains filtered or unexported fields
}
MockWithVerifyContext is a mock of WithVerifyContext interface.
func NewMockWithVerifyContext ¶
func NewMockWithVerifyContext(ctrl *gomock.Controller) *MockWithVerifyContext
NewMockWithVerifyContext creates a new mock instance.
func (*MockWithVerifyContext) EXPECT ¶
func (m *MockWithVerifyContext) EXPECT() *MockWithVerifyContextMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWithVerifyContext) ShouldVerifyWithContext ¶
func (m *MockWithVerifyContext) ShouldVerifyWithContext(arg0 context.Context) (bool, error)
ShouldVerifyWithContext mocks base method.
func (*MockWithVerifyContext) VerifyWithContext ¶
VerifyWithContext mocks base method.
type MockWithVerifyContextMockRecorder ¶
type MockWithVerifyContextMockRecorder struct {
// contains filtered or unexported fields
}
MockWithVerifyContextMockRecorder is the mock recorder for MockWithVerifyContext.
func (*MockWithVerifyContextMockRecorder) ShouldVerifyWithContext ¶
func (mr *MockWithVerifyContextMockRecorder) ShouldVerifyWithContext(arg0 interface{}) *gomock.Call
ShouldVerifyWithContext indicates an expected call of ShouldVerifyWithContext.
func (*MockWithVerifyContextMockRecorder) VerifyWithContext ¶
func (mr *MockWithVerifyContextMockRecorder) VerifyWithContext(arg0, arg1 interface{}) *gomock.Call
VerifyWithContext indicates an expected call of VerifyWithContext.