mocks

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockChainVM added in v1.8.4

type MockChainVM struct {
	// contains filtered or unexported fields
}

MockChainVM is a mock of ChainVM interface.

func NewMockChainVM added in v1.8.4

func NewMockChainVM(ctrl *gomock.Controller) *MockChainVM

NewMockChainVM creates a new mock instance.

func (*MockChainVM) AppGossip added in v1.8.4

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

AppGossip mocks base method.

func (*MockChainVM) AppRequest added in v1.8.4

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 added in v1.8.4

func (m *MockChainVM) AppRequestFailed(arg0 context.Context, arg1 ids.NodeID, arg2 uint32) error

AppRequestFailed mocks base method.

func (*MockChainVM) AppResponse added in v1.8.4

func (m *MockChainVM) AppResponse(arg0 context.Context, arg1 ids.NodeID, arg2 uint32, arg3 []byte) error

AppResponse mocks base method.

func (*MockChainVM) BuildBlock added in v1.8.4

func (m *MockChainVM) BuildBlock() (snowman.Block, error)

BuildBlock mocks base method.

func (*MockChainVM) Connected added in v1.8.4

func (m *MockChainVM) Connected(arg0 ids.NodeID, arg1 *version.Application) error

Connected mocks base method.

func (*MockChainVM) CreateHandlers added in v1.8.4

func (m *MockChainVM) CreateHandlers() (map[string]*common.HTTPHandler, error)

CreateHandlers mocks base method.

func (*MockChainVM) CreateStaticHandlers added in v1.8.4

func (m *MockChainVM) CreateStaticHandlers() (map[string]*common.HTTPHandler, error)

CreateStaticHandlers mocks base method.

func (*MockChainVM) CrossChainAppRequest added in v1.9.2

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 added in v1.9.2

func (m *MockChainVM) CrossChainAppRequestFailed(arg0 context.Context, arg1 ids.ID, arg2 uint32) error

CrossChainAppRequestFailed mocks base method.

func (*MockChainVM) CrossChainAppResponse added in v1.9.2

func (m *MockChainVM) CrossChainAppResponse(arg0 context.Context, arg1 ids.ID, arg2 uint32, arg3 []byte) error

CrossChainAppResponse mocks base method.

func (*MockChainVM) Disconnected added in v1.8.4

func (m *MockChainVM) Disconnected(arg0 ids.NodeID) error

Disconnected mocks base method.

func (*MockChainVM) EXPECT added in v1.8.4

func (m *MockChainVM) EXPECT() *MockChainVMMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockChainVM) GetBlock added in v1.8.4

func (m *MockChainVM) GetBlock(arg0 ids.ID) (snowman.Block, error)

GetBlock mocks base method.

func (*MockChainVM) HealthCheck added in v1.8.4

func (m *MockChainVM) HealthCheck() (interface{}, error)

HealthCheck mocks base method.

func (*MockChainVM) Initialize added in v1.8.4

func (m *MockChainVM) Initialize(arg0 *snow.Context, arg1 manager.Manager, arg2, arg3, arg4 []byte, arg5 chan<- common.Message, arg6 []*common.Fx, arg7 common.AppSender) error

Initialize mocks base method.

func (*MockChainVM) LastAccepted added in v1.8.4

func (m *MockChainVM) LastAccepted() (ids.ID, error)

LastAccepted mocks base method.

func (*MockChainVM) ParseBlock added in v1.8.4

func (m *MockChainVM) ParseBlock(arg0 []byte) (snowman.Block, error)

ParseBlock mocks base method.

func (*MockChainVM) SetPreference added in v1.8.4

func (m *MockChainVM) SetPreference(arg0 ids.ID) error

SetPreference mocks base method.

func (*MockChainVM) SetState added in v1.8.4

func (m *MockChainVM) SetState(arg0 snow.State) error

SetState mocks base method.

func (*MockChainVM) Shutdown added in v1.8.4

func (m *MockChainVM) Shutdown() error

Shutdown mocks base method.

func (*MockChainVM) Version added in v1.8.4

func (m *MockChainVM) Version() (string, error)

Version mocks base method.

type MockChainVMMockRecorder added in v1.8.4

type MockChainVMMockRecorder struct {
	// contains filtered or unexported fields
}

MockChainVMMockRecorder is the mock recorder for MockChainVM.

func (*MockChainVMMockRecorder) AppGossip added in v1.8.4

func (mr *MockChainVMMockRecorder) AppGossip(arg0, arg1, arg2 interface{}) *gomock.Call

AppGossip indicates an expected call of AppGossip.

func (*MockChainVMMockRecorder) AppRequest added in v1.8.4

func (mr *MockChainVMMockRecorder) AppRequest(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

AppRequest indicates an expected call of AppRequest.

func (*MockChainVMMockRecorder) AppRequestFailed added in v1.8.4

func (mr *MockChainVMMockRecorder) AppRequestFailed(arg0, arg1, arg2 interface{}) *gomock.Call

AppRequestFailed indicates an expected call of AppRequestFailed.

func (*MockChainVMMockRecorder) AppResponse added in v1.8.4

func (mr *MockChainVMMockRecorder) AppResponse(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

AppResponse indicates an expected call of AppResponse.

func (*MockChainVMMockRecorder) BuildBlock added in v1.8.4

func (mr *MockChainVMMockRecorder) BuildBlock() *gomock.Call

BuildBlock indicates an expected call of BuildBlock.

func (*MockChainVMMockRecorder) Connected added in v1.8.4

func (mr *MockChainVMMockRecorder) Connected(arg0, arg1 interface{}) *gomock.Call

Connected indicates an expected call of Connected.

func (*MockChainVMMockRecorder) CreateHandlers added in v1.8.4

func (mr *MockChainVMMockRecorder) CreateHandlers() *gomock.Call

CreateHandlers indicates an expected call of CreateHandlers.

func (*MockChainVMMockRecorder) CreateStaticHandlers added in v1.8.4

func (mr *MockChainVMMockRecorder) CreateStaticHandlers() *gomock.Call

CreateStaticHandlers indicates an expected call of CreateStaticHandlers.

func (*MockChainVMMockRecorder) CrossChainAppRequest added in v1.9.2

func (mr *MockChainVMMockRecorder) CrossChainAppRequest(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

CrossChainAppRequest indicates an expected call of CrossChainAppRequest.

func (*MockChainVMMockRecorder) CrossChainAppRequestFailed added in v1.9.2

func (mr *MockChainVMMockRecorder) CrossChainAppRequestFailed(arg0, arg1, arg2 interface{}) *gomock.Call

CrossChainAppRequestFailed indicates an expected call of CrossChainAppRequestFailed.

func (*MockChainVMMockRecorder) CrossChainAppResponse added in v1.9.2

func (mr *MockChainVMMockRecorder) CrossChainAppResponse(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

CrossChainAppResponse indicates an expected call of CrossChainAppResponse.

func (*MockChainVMMockRecorder) Disconnected added in v1.8.4

func (mr *MockChainVMMockRecorder) Disconnected(arg0 interface{}) *gomock.Call

Disconnected indicates an expected call of Disconnected.

func (*MockChainVMMockRecorder) GetBlock added in v1.8.4

func (mr *MockChainVMMockRecorder) GetBlock(arg0 interface{}) *gomock.Call

GetBlock indicates an expected call of GetBlock.

func (*MockChainVMMockRecorder) HealthCheck added in v1.8.4

func (mr *MockChainVMMockRecorder) HealthCheck() *gomock.Call

HealthCheck indicates an expected call of HealthCheck.

func (*MockChainVMMockRecorder) Initialize added in v1.8.4

func (mr *MockChainVMMockRecorder) Initialize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 interface{}) *gomock.Call

Initialize indicates an expected call of Initialize.

func (*MockChainVMMockRecorder) LastAccepted added in v1.8.4

func (mr *MockChainVMMockRecorder) LastAccepted() *gomock.Call

LastAccepted indicates an expected call of LastAccepted.

func (*MockChainVMMockRecorder) ParseBlock added in v1.8.4

func (mr *MockChainVMMockRecorder) ParseBlock(arg0 interface{}) *gomock.Call

ParseBlock indicates an expected call of ParseBlock.

func (*MockChainVMMockRecorder) SetPreference added in v1.8.4

func (mr *MockChainVMMockRecorder) SetPreference(arg0 interface{}) *gomock.Call

SetPreference indicates an expected call of SetPreference.

func (*MockChainVMMockRecorder) SetState added in v1.8.4

func (mr *MockChainVMMockRecorder) SetState(arg0 interface{}) *gomock.Call

SetState indicates an expected call of SetState.

func (*MockChainVMMockRecorder) Shutdown added in v1.8.4

func (mr *MockChainVMMockRecorder) Shutdown() *gomock.Call

Shutdown indicates an expected call of Shutdown.

func (*MockChainVMMockRecorder) Version added in v1.8.4

func (mr *MockChainVMMockRecorder) Version() *gomock.Call

Version indicates an expected call of Version.

type MockStateSyncableVM added in v1.8.4

type MockStateSyncableVM struct {
	// contains filtered or unexported fields
}

MockStateSyncableVM is a mock of StateSyncableVM interface.

func NewMockStateSyncableVM added in v1.8.4

func NewMockStateSyncableVM(ctrl *gomock.Controller) *MockStateSyncableVM

NewMockStateSyncableVM creates a new mock instance.

func (*MockStateSyncableVM) EXPECT added in v1.8.4

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockStateSyncableVM) GetLastStateSummary added in v1.8.4

func (m *MockStateSyncableVM) GetLastStateSummary() (block.StateSummary, error)

GetLastStateSummary mocks base method.

func (*MockStateSyncableVM) GetOngoingSyncStateSummary added in v1.8.4

func (m *MockStateSyncableVM) GetOngoingSyncStateSummary() (block.StateSummary, error)

GetOngoingSyncStateSummary mocks base method.

func (*MockStateSyncableVM) GetStateSummary added in v1.8.4

func (m *MockStateSyncableVM) GetStateSummary(arg0 uint64) (block.StateSummary, error)

GetStateSummary mocks base method.

func (*MockStateSyncableVM) ParseStateSummary added in v1.8.4

func (m *MockStateSyncableVM) ParseStateSummary(arg0 []byte) (block.StateSummary, error)

ParseStateSummary mocks base method.

func (*MockStateSyncableVM) StateSyncEnabled added in v1.8.4

func (m *MockStateSyncableVM) StateSyncEnabled() (bool, error)

StateSyncEnabled mocks base method.

type MockStateSyncableVMMockRecorder added in v1.8.4

type MockStateSyncableVMMockRecorder struct {
	// contains filtered or unexported fields
}

MockStateSyncableVMMockRecorder is the mock recorder for MockStateSyncableVM.

func (*MockStateSyncableVMMockRecorder) GetLastStateSummary added in v1.8.4

func (mr *MockStateSyncableVMMockRecorder) GetLastStateSummary() *gomock.Call

GetLastStateSummary indicates an expected call of GetLastStateSummary.

func (*MockStateSyncableVMMockRecorder) GetOngoingSyncStateSummary added in v1.8.4

func (mr *MockStateSyncableVMMockRecorder) GetOngoingSyncStateSummary() *gomock.Call

GetOngoingSyncStateSummary indicates an expected call of GetOngoingSyncStateSummary.

func (*MockStateSyncableVMMockRecorder) GetStateSummary added in v1.8.4

func (mr *MockStateSyncableVMMockRecorder) GetStateSummary(arg0 interface{}) *gomock.Call

GetStateSummary indicates an expected call of GetStateSummary.

func (*MockStateSyncableVMMockRecorder) ParseStateSummary added in v1.8.4

func (mr *MockStateSyncableVMMockRecorder) ParseStateSummary(arg0 interface{}) *gomock.Call

ParseStateSummary indicates an expected call of ParseStateSummary.

func (*MockStateSyncableVMMockRecorder) StateSyncEnabled added in v1.8.4

func (mr *MockStateSyncableVMMockRecorder) StateSyncEnabled() *gomock.Call

StateSyncEnabled indicates an expected call of StateSyncEnabled.

Jump to

Keyboard shortcuts

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