blockmock

package
v1.11.13-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

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

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

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) AppGossip

func (m *ChainVM) AppGossip(arg0 context.Context, arg1 ids.NodeID, arg2 []byte) error

AppGossip mocks base method.

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

func (m *ChainVM) BuildBlock(arg0 context.Context) (snowman.Block, error)

BuildBlock mocks base method.

func (*ChainVM) Connected

func (m *ChainVM) Connected(arg0 context.Context, arg1 ids.NodeID, arg2 *version.Application) error

Connected mocks base method.

func (*ChainVM) CreateHandlers

func (m *ChainVM) CreateHandlers(arg0 context.Context) (map[string]http.Handler, error)

CreateHandlers mocks base method.

func (*ChainVM) Disconnected

func (m *ChainVM) Disconnected(arg0 context.Context, arg1 ids.NodeID) error

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) GetBlock

func (m *ChainVM) GetBlock(arg0 context.Context, arg1 ids.ID) (snowman.Block, error)

GetBlock mocks base method.

func (*ChainVM) GetBlockIDAtHeight

func (m *ChainVM) GetBlockIDAtHeight(arg0 context.Context, arg1 uint64) (ids.ID, error)

GetBlockIDAtHeight mocks base method.

func (*ChainVM) HealthCheck

func (m *ChainVM) HealthCheck(arg0 context.Context) (any, error)

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

func (m *ChainVM) LastAccepted(arg0 context.Context) (ids.ID, error)

LastAccepted mocks base method.

func (*ChainVM) ParseBlock

func (m *ChainVM) ParseBlock(arg0 context.Context, arg1 []byte) (snowman.Block, error)

ParseBlock mocks base method.

func (*ChainVM) SetPreference

func (m *ChainVM) SetPreference(arg0 context.Context, arg1 ids.ID) error

SetPreference mocks base method.

func (*ChainVM) SetState

func (m *ChainVM) SetState(arg0 context.Context, arg1 snow.State) error

SetState mocks base method.

func (*ChainVM) Shutdown

func (m *ChainVM) Shutdown(arg0 context.Context) error

Shutdown mocks base method.

func (*ChainVM) Version

func (m *ChainVM) Version(arg0 context.Context) (string, error)

Version 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.

func (*ChainVMMockRecorder) Shutdown

func (mr *ChainVMMockRecorder) Shutdown(arg0 any) *gomock.Call

Shutdown indicates an expected call of Shutdown.

func (*ChainVMMockRecorder) Version

func (mr *ChainVMMockRecorder) Version(arg0 any) *gomock.Call

Version indicates an expected call of Version.

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

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

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

func (m *WithVerifyContext) VerifyWithContext(arg0 context.Context, arg1 *block.Context) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL