mocks

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

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

type TransactionState struct {
	mock.Mock
}

TransactionState is an autogenerated mock type for the TransactionState type

func NewTransactionState

func NewTransactionState(t mockConstructorTestingTNewTransactionState) *TransactionState

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

func (*TransactionState) AddToPool

AddToPool provides a mock function with given fields: vt

Jump to

Keyboard shortcuts

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