mocks

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: LGPL-3.0 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 MockBlockImportDigestHandler added in v0.8.0

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

MockBlockImportDigestHandler is a mock of BlockImportDigestHandler interface.

func NewMockBlockImportDigestHandler added in v0.8.0

func NewMockBlockImportDigestHandler(ctrl *gomock.Controller) *MockBlockImportDigestHandler

NewMockBlockImportDigestHandler creates a new mock instance.

func (*MockBlockImportDigestHandler) EXPECT added in v0.8.0

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

func (*MockBlockImportDigestHandler) HandleDigests added in v0.8.0

func (m *MockBlockImportDigestHandler) HandleDigests(arg0 *types.Header) error

HandleDigests mocks base method.

type MockBlockImportDigestHandlerMockRecorder added in v0.8.0

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

MockBlockImportDigestHandlerMockRecorder is the mock recorder for MockBlockImportDigestHandler.

func (*MockBlockImportDigestHandlerMockRecorder) HandleDigests added in v0.8.0

func (mr *MockBlockImportDigestHandlerMockRecorder) HandleDigests(arg0 any) *gomock.Call

HandleDigests indicates an expected call of HandleDigests.

type MockInstance added in v0.8.0

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

MockInstance is a mock of Instance interface.

func NewMockInstance added in v0.8.0

func NewMockInstance(ctrl *gomock.Controller) *MockInstance

NewMockInstance creates a new mock instance.

func (*MockInstance) ApplyExtrinsic added in v0.8.0

func (m *MockInstance) ApplyExtrinsic(arg0 types.Extrinsic) ([]byte, error)

ApplyExtrinsic mocks base method.

func (*MockInstance) BabeConfiguration added in v0.8.0

func (m *MockInstance) BabeConfiguration() (*types.BabeConfiguration, error)

BabeConfiguration mocks base method.

func (*MockInstance) BabeGenerateKeyOwnershipProof added in v0.8.0

func (m *MockInstance) BabeGenerateKeyOwnershipProof(arg0 uint64, arg1 [32]byte) (types.OpaqueKeyOwnershipProof, error)

BabeGenerateKeyOwnershipProof mocks base method.

func (*MockInstance) BabeSubmitReportEquivocationUnsignedExtrinsic added in v0.8.0

func (m *MockInstance) BabeSubmitReportEquivocationUnsignedExtrinsic(arg0 types.BabeEquivocationProof, arg1 types.OpaqueKeyOwnershipProof) error

BabeSubmitReportEquivocationUnsignedExtrinsic mocks base method.

func (*MockInstance) CheckInherents added in v0.8.0

func (m *MockInstance) CheckInherents()

CheckInherents mocks base method.

func (*MockInstance) DecodeSessionKeys added in v0.8.0

func (m *MockInstance) DecodeSessionKeys(arg0 []byte) ([]byte, error)

DecodeSessionKeys mocks base method.

func (*MockInstance) EXPECT added in v0.8.0

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

func (*MockInstance) Exec added in v0.8.0

func (m *MockInstance) Exec(arg0 string, arg1 []byte) ([]byte, error)

Exec mocks base method.

func (*MockInstance) ExecuteBlock added in v0.8.0

func (m *MockInstance) ExecuteBlock(arg0 *types.Block) ([]byte, error)

ExecuteBlock mocks base method.

func (*MockInstance) FinalizeBlock added in v0.8.0

func (m *MockInstance) FinalizeBlock() (*types.Header, error)

FinalizeBlock mocks base method.

func (*MockInstance) GenerateSessionKeys added in v0.8.0

func (m *MockInstance) GenerateSessionKeys()

GenerateSessionKeys mocks base method.

func (*MockInstance) GetCodeHash added in v0.8.0

func (m *MockInstance) GetCodeHash() common.Hash

GetCodeHash mocks base method.

func (*MockInstance) GrandpaAuthorities added in v0.8.0

func (m *MockInstance) GrandpaAuthorities() ([]types.Authority, error)

GrandpaAuthorities mocks base method.

func (*MockInstance) GrandpaGenerateKeyOwnershipProof added in v0.8.0

func (m *MockInstance) GrandpaGenerateKeyOwnershipProof(arg0 uint64, arg1 ed25519.PublicKeyBytes) (types.GrandpaOpaqueKeyOwnershipProof, error)

GrandpaGenerateKeyOwnershipProof mocks base method.

func (*MockInstance) GrandpaSubmitReportEquivocationUnsignedExtrinsic added in v0.8.0

func (m *MockInstance) GrandpaSubmitReportEquivocationUnsignedExtrinsic(arg0 types.GrandpaEquivocationProof, arg1 types.GrandpaOpaqueKeyOwnershipProof) error

GrandpaSubmitReportEquivocationUnsignedExtrinsic mocks base method.

func (*MockInstance) InherentExtrinsics added in v0.8.0

func (m *MockInstance) InherentExtrinsics(arg0 []byte) ([]byte, error)

InherentExtrinsics mocks base method.

func (*MockInstance) InitializeBlock added in v0.8.0

func (m *MockInstance) InitializeBlock(arg0 *types.Header) error

InitializeBlock mocks base method.

func (*MockInstance) Keystore added in v0.8.0

func (m *MockInstance) Keystore() *keystore.GlobalKeystore

Keystore mocks base method.

func (*MockInstance) Metadata added in v0.8.0

func (m *MockInstance) Metadata() ([]byte, error)

Metadata mocks base method.

func (*MockInstance) NetworkService added in v0.8.0

func (m *MockInstance) NetworkService() runtime.BasicNetwork

NetworkService mocks base method.

func (*MockInstance) NodeStorage added in v0.8.0

func (m *MockInstance) NodeStorage() runtime.NodeStorage

NodeStorage mocks base method.

func (*MockInstance) OffchainWorker added in v0.8.0

func (m *MockInstance) OffchainWorker()

OffchainWorker mocks base method.

func (*MockInstance) PaymentQueryInfo added in v0.8.0

func (m *MockInstance) PaymentQueryInfo(arg0 []byte) (*types.RuntimeDispatchInfo, error)

PaymentQueryInfo mocks base method.

func (*MockInstance) RandomSeed added in v0.8.0

func (m *MockInstance) RandomSeed()

RandomSeed mocks base method.

func (*MockInstance) SetContextStorage added in v0.8.0

func (m *MockInstance) SetContextStorage(arg0 runtime.Storage)

SetContextStorage mocks base method.

func (*MockInstance) Stop added in v0.8.0

func (m *MockInstance) Stop()

Stop mocks base method.

func (*MockInstance) ValidateTransaction added in v0.8.0

func (m *MockInstance) ValidateTransaction(arg0 types.Extrinsic) (*transaction.Validity, error)

ValidateTransaction mocks base method.

func (*MockInstance) Validator added in v0.8.0

func (m *MockInstance) Validator() bool

Validator mocks base method.

func (*MockInstance) Version added in v0.8.0

func (m *MockInstance) Version() (runtime.Version, error)

Version mocks base method.

type MockInstanceMockRecorder added in v0.8.0

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

MockInstanceMockRecorder is the mock recorder for MockInstance.

func (*MockInstanceMockRecorder) ApplyExtrinsic added in v0.8.0

func (mr *MockInstanceMockRecorder) ApplyExtrinsic(arg0 any) *gomock.Call

ApplyExtrinsic indicates an expected call of ApplyExtrinsic.

func (*MockInstanceMockRecorder) BabeConfiguration added in v0.8.0

func (mr *MockInstanceMockRecorder) BabeConfiguration() *gomock.Call

BabeConfiguration indicates an expected call of BabeConfiguration.

func (*MockInstanceMockRecorder) BabeGenerateKeyOwnershipProof added in v0.8.0

func (mr *MockInstanceMockRecorder) BabeGenerateKeyOwnershipProof(arg0, arg1 any) *gomock.Call

BabeGenerateKeyOwnershipProof indicates an expected call of BabeGenerateKeyOwnershipProof.

func (*MockInstanceMockRecorder) BabeSubmitReportEquivocationUnsignedExtrinsic added in v0.8.0

func (mr *MockInstanceMockRecorder) BabeSubmitReportEquivocationUnsignedExtrinsic(arg0, arg1 any) *gomock.Call

BabeSubmitReportEquivocationUnsignedExtrinsic indicates an expected call of BabeSubmitReportEquivocationUnsignedExtrinsic.

func (*MockInstanceMockRecorder) CheckInherents added in v0.8.0

func (mr *MockInstanceMockRecorder) CheckInherents() *gomock.Call

CheckInherents indicates an expected call of CheckInherents.

func (*MockInstanceMockRecorder) DecodeSessionKeys added in v0.8.0

func (mr *MockInstanceMockRecorder) DecodeSessionKeys(arg0 any) *gomock.Call

DecodeSessionKeys indicates an expected call of DecodeSessionKeys.

func (*MockInstanceMockRecorder) Exec added in v0.8.0

func (mr *MockInstanceMockRecorder) Exec(arg0, arg1 any) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockInstanceMockRecorder) ExecuteBlock added in v0.8.0

func (mr *MockInstanceMockRecorder) ExecuteBlock(arg0 any) *gomock.Call

ExecuteBlock indicates an expected call of ExecuteBlock.

func (*MockInstanceMockRecorder) FinalizeBlock added in v0.8.0

func (mr *MockInstanceMockRecorder) FinalizeBlock() *gomock.Call

FinalizeBlock indicates an expected call of FinalizeBlock.

func (*MockInstanceMockRecorder) GenerateSessionKeys added in v0.8.0

func (mr *MockInstanceMockRecorder) GenerateSessionKeys() *gomock.Call

GenerateSessionKeys indicates an expected call of GenerateSessionKeys.

func (*MockInstanceMockRecorder) GetCodeHash added in v0.8.0

func (mr *MockInstanceMockRecorder) GetCodeHash() *gomock.Call

GetCodeHash indicates an expected call of GetCodeHash.

func (*MockInstanceMockRecorder) GrandpaAuthorities added in v0.8.0

func (mr *MockInstanceMockRecorder) GrandpaAuthorities() *gomock.Call

GrandpaAuthorities indicates an expected call of GrandpaAuthorities.

func (*MockInstanceMockRecorder) GrandpaGenerateKeyOwnershipProof added in v0.8.0

func (mr *MockInstanceMockRecorder) GrandpaGenerateKeyOwnershipProof(arg0, arg1 any) *gomock.Call

GrandpaGenerateKeyOwnershipProof indicates an expected call of GrandpaGenerateKeyOwnershipProof.

func (*MockInstanceMockRecorder) GrandpaSubmitReportEquivocationUnsignedExtrinsic added in v0.8.0

func (mr *MockInstanceMockRecorder) GrandpaSubmitReportEquivocationUnsignedExtrinsic(arg0, arg1 any) *gomock.Call

GrandpaSubmitReportEquivocationUnsignedExtrinsic indicates an expected call of GrandpaSubmitReportEquivocationUnsignedExtrinsic.

func (*MockInstanceMockRecorder) InherentExtrinsics added in v0.8.0

func (mr *MockInstanceMockRecorder) InherentExtrinsics(arg0 any) *gomock.Call

InherentExtrinsics indicates an expected call of InherentExtrinsics.

func (*MockInstanceMockRecorder) InitializeBlock added in v0.8.0

func (mr *MockInstanceMockRecorder) InitializeBlock(arg0 any) *gomock.Call

InitializeBlock indicates an expected call of InitializeBlock.

func (*MockInstanceMockRecorder) Keystore added in v0.8.0

func (mr *MockInstanceMockRecorder) Keystore() *gomock.Call

Keystore indicates an expected call of Keystore.

func (*MockInstanceMockRecorder) Metadata added in v0.8.0

func (mr *MockInstanceMockRecorder) Metadata() *gomock.Call

Metadata indicates an expected call of Metadata.

func (*MockInstanceMockRecorder) NetworkService added in v0.8.0

func (mr *MockInstanceMockRecorder) NetworkService() *gomock.Call

NetworkService indicates an expected call of NetworkService.

func (*MockInstanceMockRecorder) NodeStorage added in v0.8.0

func (mr *MockInstanceMockRecorder) NodeStorage() *gomock.Call

NodeStorage indicates an expected call of NodeStorage.

func (*MockInstanceMockRecorder) OffchainWorker added in v0.8.0

func (mr *MockInstanceMockRecorder) OffchainWorker() *gomock.Call

OffchainWorker indicates an expected call of OffchainWorker.

func (*MockInstanceMockRecorder) PaymentQueryInfo added in v0.8.0

func (mr *MockInstanceMockRecorder) PaymentQueryInfo(arg0 any) *gomock.Call

PaymentQueryInfo indicates an expected call of PaymentQueryInfo.

func (*MockInstanceMockRecorder) RandomSeed added in v0.8.0

func (mr *MockInstanceMockRecorder) RandomSeed() *gomock.Call

RandomSeed indicates an expected call of RandomSeed.

func (*MockInstanceMockRecorder) SetContextStorage added in v0.8.0

func (mr *MockInstanceMockRecorder) SetContextStorage(arg0 any) *gomock.Call

SetContextStorage indicates an expected call of SetContextStorage.

func (*MockInstanceMockRecorder) Stop added in v0.8.0

func (mr *MockInstanceMockRecorder) Stop() *gomock.Call

Stop indicates an expected call of Stop.

func (*MockInstanceMockRecorder) ValidateTransaction added in v0.8.0

func (mr *MockInstanceMockRecorder) ValidateTransaction(arg0 any) *gomock.Call

ValidateTransaction indicates an expected call of ValidateTransaction.

func (*MockInstanceMockRecorder) Validator added in v0.8.0

func (mr *MockInstanceMockRecorder) Validator() *gomock.Call

Validator indicates an expected call of Validator.

func (*MockInstanceMockRecorder) Version added in v0.8.0

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

Version indicates an expected call of Version.

type MockNetwork

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

MockNetwork is a mock of Network interface.

func NewMockNetwork

func NewMockNetwork(ctrl *gomock.Controller) *MockNetwork

NewMockNetwork creates a new mock instance.

func (*MockNetwork) EXPECT

func (m *MockNetwork) EXPECT() *MockNetworkMockRecorder

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

func (*MockNetwork) GossipMessage

func (m *MockNetwork) GossipMessage(arg0 network.NotificationsMessage)

GossipMessage mocks base method.

func (*MockNetwork) IsSynced

func (m *MockNetwork) IsSynced() bool

IsSynced mocks base method.

func (*MockNetwork) ReportPeer

func (m *MockNetwork) ReportPeer(arg0 peerset.ReputationChange, arg1 peer.ID)

ReportPeer mocks base method.

type MockNetworkMockRecorder

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

MockNetworkMockRecorder is the mock recorder for MockNetwork.

func (*MockNetworkMockRecorder) GossipMessage

func (mr *MockNetworkMockRecorder) GossipMessage(arg0 any) *gomock.Call

GossipMessage indicates an expected call of GossipMessage.

func (*MockNetworkMockRecorder) IsSynced

func (mr *MockNetworkMockRecorder) IsSynced() *gomock.Call

IsSynced indicates an expected call of IsSynced.

func (*MockNetworkMockRecorder) ReportPeer

func (mr *MockNetworkMockRecorder) ReportPeer(arg0, arg1 any) *gomock.Call

ReportPeer indicates an expected call of ReportPeer.

Jump to

Keyboard shortcuts

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