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: 9 Imported by: 0

Documentation

Overview

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 Instance

type Instance struct {
	mock.Mock
}

Instance is an autogenerated mock type for the Instance type

func NewInstance

func NewInstance(t mockConstructorTestingTNewInstance) *Instance

NewInstance creates a new instance of Instance. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Instance) ApplyExtrinsic

func (_m *Instance) ApplyExtrinsic(data types.Extrinsic) ([]byte, error)

ApplyExtrinsic provides a mock function with given fields: data

func (*Instance) BabeConfiguration

func (_m *Instance) BabeConfiguration() (*types.BabeConfiguration, error)

BabeConfiguration provides a mock function with given fields:

func (*Instance) CheckInherents

func (_m *Instance) CheckInherents()

CheckInherents provides a mock function with given fields:

func (*Instance) DecodeSessionKeys

func (_m *Instance) DecodeSessionKeys(enc []byte) ([]byte, error)

DecodeSessionKeys provides a mock function with given fields: enc

func (*Instance) Exec

func (_m *Instance) Exec(function string, data []byte) ([]byte, error)

Exec provides a mock function with given fields: function, data

func (*Instance) ExecuteBlock

func (_m *Instance) ExecuteBlock(block *types.Block) ([]byte, error)

ExecuteBlock provides a mock function with given fields: block

func (*Instance) FinalizeBlock

func (_m *Instance) FinalizeBlock() (*types.Header, error)

FinalizeBlock provides a mock function with given fields:

func (*Instance) GenerateSessionKeys

func (_m *Instance) GenerateSessionKeys()

GenerateSessionKeys provides a mock function with given fields:

func (*Instance) GetCodeHash

func (_m *Instance) GetCodeHash() common.Hash

GetCodeHash provides a mock function with given fields:

func (*Instance) GrandpaAuthorities

func (_m *Instance) GrandpaAuthorities() ([]types.Authority, error)

GrandpaAuthorities provides a mock function with given fields:

func (*Instance) GrandpaGenerateKeyOwnershipProof added in v0.8.0

func (_m *Instance) GrandpaGenerateKeyOwnershipProof(authSetID uint64, authorityID ed25519.PublicKeyBytes) (types.GrandpaOpaqueKeyOwnershipProof, error)

GrandpaGenerateKeyOwnershipProof provides a mock function with given fields: authSetID, authorityID

func (*Instance) GrandpaSubmitReportEquivocationUnsignedExtrinsic added in v0.8.0

func (_m *Instance) GrandpaSubmitReportEquivocationUnsignedExtrinsic(equivocationProof types.GrandpaEquivocationProof, keyOwnershipProof types.GrandpaOpaqueKeyOwnershipProof) error

GrandpaSubmitReportEquivocationUnsignedExtrinsic provides a mock function with given fields: equivocationProof, keyOwnershipProof

func (*Instance) InherentExtrinsics

func (_m *Instance) InherentExtrinsics(data []byte) ([]byte, error)

InherentExtrinsics provides a mock function with given fields: data

func (*Instance) InitializeBlock

func (_m *Instance) InitializeBlock(header *types.Header) error

InitializeBlock provides a mock function with given fields: header

func (*Instance) Keystore

func (_m *Instance) Keystore() *keystore.GlobalKeystore

Keystore provides a mock function with given fields:

func (*Instance) Metadata

func (_m *Instance) Metadata() ([]byte, error)

Metadata provides a mock function with given fields:

func (*Instance) NetworkService

func (_m *Instance) NetworkService() runtime.BasicNetwork

NetworkService provides a mock function with given fields:

func (*Instance) NodeStorage

func (_m *Instance) NodeStorage() runtime.NodeStorage

NodeStorage provides a mock function with given fields:

func (*Instance) OffchainWorker

func (_m *Instance) OffchainWorker()

OffchainWorker provides a mock function with given fields:

func (*Instance) PaymentQueryInfo

func (_m *Instance) PaymentQueryInfo(ext []byte) (*types.RuntimeDispatchInfo, error)

PaymentQueryInfo provides a mock function with given fields: ext

func (*Instance) RandomSeed

func (_m *Instance) RandomSeed()

RandomSeed provides a mock function with given fields:

func (*Instance) SetContextStorage

func (_m *Instance) SetContextStorage(s runtime.Storage)

SetContextStorage provides a mock function with given fields: s

func (*Instance) Stop

func (_m *Instance) Stop()

Stop provides a mock function with given fields:

func (*Instance) UpdateRuntimeCode

func (_m *Instance) UpdateRuntimeCode(_a0 []byte) error

UpdateRuntimeCode provides a mock function with given fields: _a0

func (*Instance) ValidateTransaction

func (_m *Instance) ValidateTransaction(e types.Extrinsic) (*transaction.Validity, error)

ValidateTransaction provides a mock function with given fields: e

func (*Instance) Validator

func (_m *Instance) Validator() bool

Validator provides a mock function with given fields:

func (*Instance) Version

func (_m *Instance) Version() runtime.Version

Version provides a mock function with given fields:

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 MockTransactionState added in v0.8.0

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

MockTransactionState is a mock of TransactionState interface.

func NewMockTransactionState added in v0.8.0

func NewMockTransactionState(ctrl *gomock.Controller) *MockTransactionState

NewMockTransactionState creates a new mock instance.

func (*MockTransactionState) AddToPool added in v0.8.0

AddToPool mocks base method.

func (*MockTransactionState) EXPECT added in v0.8.0

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

type MockTransactionStateMockRecorder added in v0.8.0

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

MockTransactionStateMockRecorder is the mock recorder for MockTransactionState.

func (*MockTransactionStateMockRecorder) AddToPool added in v0.8.0

func (mr *MockTransactionStateMockRecorder) AddToPool(arg0 any) *gomock.Call

AddToPool indicates an expected call of AddToPool.

Jump to

Keyboard shortcuts

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