mocks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: BSD-3-Clause Imports: 10 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

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

func (m *MockChainVM) AppGossip(nodeID ids.NodeID, msg []byte) error

AppGossip mocks base method.

func (*MockChainVM) AppRequest

func (m *MockChainVM) AppRequest(nodeID ids.NodeID, requestID uint32, deadline time.Time, request []byte) error

AppRequest mocks base method.

func (*MockChainVM) AppRequestFailed

func (m *MockChainVM) AppRequestFailed(nodeID ids.NodeID, requestID uint32) error

AppRequestFailed mocks base method.

func (*MockChainVM) AppResponse

func (m *MockChainVM) AppResponse(nodeID ids.NodeID, requestID uint32, response []byte) error

AppResponse mocks base method.

func (*MockChainVM) BuildBlock

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

BuildBlock mocks base method.

func (*MockChainVM) Connected

func (m *MockChainVM) Connected(id ids.NodeID, nodeVersion *version.Application) error

Connected mocks base method.

func (*MockChainVM) CreateHandlers

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

CreateHandlers mocks base method.

func (*MockChainVM) CreateStaticHandlers

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

CreateStaticHandlers mocks base method.

func (*MockChainVM) Disconnected

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

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

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

GetBlock mocks base method.

func (*MockChainVM) HealthCheck

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

HealthCheck mocks base method.

func (*MockChainVM) Initialize

func (m *MockChainVM) Initialize(ctx *snow.Context, dbManager manager.Manager, genesisBytes, upgradeBytes, configBytes []byte, toEngine chan<- common.Message, fxs []*common.Fx, appSender common.AppSender) error

Initialize mocks base method.

func (*MockChainVM) LastAccepted

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

LastAccepted mocks base method.

func (*MockChainVM) ParseBlock

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

ParseBlock mocks base method.

func (*MockChainVM) SetPreference

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

SetPreference mocks base method.

func (*MockChainVM) SetState

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

SetState mocks base method.

func (*MockChainVM) Shutdown

func (m *MockChainVM) Shutdown() error

Shutdown mocks base method.

func (*MockChainVM) Version

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

Version 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(nodeID, msg interface{}) *gomock.Call

AppGossip indicates an expected call of AppGossip.

func (*MockChainVMMockRecorder) AppRequest

func (mr *MockChainVMMockRecorder) AppRequest(nodeID, requestID, deadline, request interface{}) *gomock.Call

AppRequest indicates an expected call of AppRequest.

func (*MockChainVMMockRecorder) AppRequestFailed

func (mr *MockChainVMMockRecorder) AppRequestFailed(nodeID, requestID interface{}) *gomock.Call

AppRequestFailed indicates an expected call of AppRequestFailed.

func (*MockChainVMMockRecorder) AppResponse

func (mr *MockChainVMMockRecorder) AppResponse(nodeID, requestID, response interface{}) *gomock.Call

AppResponse indicates an expected call of AppResponse.

func (*MockChainVMMockRecorder) BuildBlock

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

BuildBlock indicates an expected call of BuildBlock.

func (*MockChainVMMockRecorder) Connected

func (mr *MockChainVMMockRecorder) Connected(id, nodeVersion interface{}) *gomock.Call

Connected indicates an expected call of Connected.

func (*MockChainVMMockRecorder) CreateHandlers

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

CreateHandlers indicates an expected call of CreateHandlers.

func (*MockChainVMMockRecorder) CreateStaticHandlers

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

CreateStaticHandlers indicates an expected call of CreateStaticHandlers.

func (*MockChainVMMockRecorder) Disconnected

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

Disconnected indicates an expected call of Disconnected.

func (*MockChainVMMockRecorder) GetBlock

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

GetBlock indicates an expected call of GetBlock.

func (*MockChainVMMockRecorder) HealthCheck

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

HealthCheck indicates an expected call of HealthCheck.

func (*MockChainVMMockRecorder) Initialize

func (mr *MockChainVMMockRecorder) Initialize(ctx, dbManager, genesisBytes, upgradeBytes, configBytes, toEngine, fxs, appSender interface{}) *gomock.Call

Initialize indicates an expected call of Initialize.

func (*MockChainVMMockRecorder) LastAccepted

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

LastAccepted indicates an expected call of LastAccepted.

func (*MockChainVMMockRecorder) ParseBlock

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

ParseBlock indicates an expected call of ParseBlock.

func (*MockChainVMMockRecorder) SetPreference

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

SetPreference indicates an expected call of SetPreference.

func (*MockChainVMMockRecorder) SetState

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

SetState indicates an expected call of SetState.

func (*MockChainVMMockRecorder) Shutdown

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

Shutdown indicates an expected call of Shutdown.

func (*MockChainVMMockRecorder) Version

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

Version indicates an expected call of Version.

type MockGetter

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

MockGetter is a mock of Getter interface.

func NewMockGetter

func NewMockGetter(ctrl *gomock.Controller) *MockGetter

NewMockGetter creates a new mock instance.

func (*MockGetter) EXPECT

func (m *MockGetter) EXPECT() *MockGetterMockRecorder

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

func (*MockGetter) GetBlock

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

GetBlock mocks base method.

type MockGetterMockRecorder

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

MockGetterMockRecorder is the mock recorder for MockGetter.

func (*MockGetterMockRecorder) GetBlock

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

GetBlock indicates an expected call of GetBlock.

type MockParser

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

MockParser is a mock of Parser interface.

func NewMockParser

func NewMockParser(ctrl *gomock.Controller) *MockParser

NewMockParser creates a new mock instance.

func (*MockParser) EXPECT

func (m *MockParser) EXPECT() *MockParserMockRecorder

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

func (*MockParser) ParseBlock

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

ParseBlock mocks base method.

type MockParserMockRecorder

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

MockParserMockRecorder is the mock recorder for MockParser.

func (*MockParserMockRecorder) ParseBlock

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

ParseBlock indicates an expected call of ParseBlock.

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

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

func (*MockStateSyncableVM) GetLastStateSummary

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

GetLastStateSummary mocks base method.

func (*MockStateSyncableVM) GetOngoingSyncStateSummary

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

GetOngoingSyncStateSummary mocks base method.

func (*MockStateSyncableVM) GetStateSummary

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

GetStateSummary mocks base method.

func (*MockStateSyncableVM) ParseStateSummary

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

ParseStateSummary mocks base method.

func (*MockStateSyncableVM) StateSyncEnabled

func (m *MockStateSyncableVM) StateSyncEnabled() (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() *gomock.Call

GetLastStateSummary indicates an expected call of GetLastStateSummary.

func (*MockStateSyncableVMMockRecorder) GetOngoingSyncStateSummary

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

GetOngoingSyncStateSummary indicates an expected call of GetOngoingSyncStateSummary.

func (*MockStateSyncableVMMockRecorder) GetStateSummary

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

GetStateSummary indicates an expected call of GetStateSummary.

func (*MockStateSyncableVMMockRecorder) ParseStateSummary

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

ParseStateSummary indicates an expected call of ParseStateSummary.

func (*MockStateSyncableVMMockRecorder) StateSyncEnabled

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