mocks

package
v4.0.0-...-b8792c0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NewStateT

type NewStateT interface {
	mock.TestingT
	Cleanup(func())
}

type State

type State struct {
	mock.Mock
}

State is an autogenerated mock type for the State type

func NewState

func NewState(t NewStateT) *State

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

func (*State) GetChildKeys

func (_m *State) GetChildKeys(childStorageKey types.StorageKey, prefix types.StorageKey, blockHash types.Hash) ([]types.StorageKey, error)

GetChildKeys provides a mock function with given fields: childStorageKey, prefix, blockHash

func (*State) GetChildKeysLatest

func (_m *State) GetChildKeysLatest(childStorageKey types.StorageKey, prefix types.StorageKey) ([]types.StorageKey, error)

GetChildKeysLatest provides a mock function with given fields: childStorageKey, prefix

func (*State) GetChildStorage

func (_m *State) GetChildStorage(childStorageKey types.StorageKey, key types.StorageKey, target interface{}, blockHash types.Hash) (bool, error)

GetChildStorage provides a mock function with given fields: childStorageKey, key, target, blockHash

func (*State) GetChildStorageHash

func (_m *State) GetChildStorageHash(childStorageKey types.StorageKey, key types.StorageKey, blockHash types.Hash) (types.Hash, error)

GetChildStorageHash provides a mock function with given fields: childStorageKey, key, blockHash

func (*State) GetChildStorageHashLatest

func (_m *State) GetChildStorageHashLatest(childStorageKey types.StorageKey, key types.StorageKey) (types.Hash, error)

GetChildStorageHashLatest provides a mock function with given fields: childStorageKey, key

func (*State) GetChildStorageLatest

func (_m *State) GetChildStorageLatest(childStorageKey types.StorageKey, key types.StorageKey, target interface{}) (bool, error)

GetChildStorageLatest provides a mock function with given fields: childStorageKey, key, target

func (*State) GetChildStorageRaw

func (_m *State) GetChildStorageRaw(childStorageKey types.StorageKey, key types.StorageKey, blockHash types.Hash) (*types.StorageDataRaw, error)

GetChildStorageRaw provides a mock function with given fields: childStorageKey, key, blockHash

func (*State) GetChildStorageRawLatest

func (_m *State) GetChildStorageRawLatest(childStorageKey types.StorageKey, key types.StorageKey) (*types.StorageDataRaw, error)

GetChildStorageRawLatest provides a mock function with given fields: childStorageKey, key

func (*State) GetChildStorageSize

func (_m *State) GetChildStorageSize(childStorageKey types.StorageKey, key types.StorageKey, blockHash types.Hash) (types.U64, error)

GetChildStorageSize provides a mock function with given fields: childStorageKey, key, blockHash

func (*State) GetChildStorageSizeLatest

func (_m *State) GetChildStorageSizeLatest(childStorageKey types.StorageKey, key types.StorageKey) (types.U64, error)

GetChildStorageSizeLatest provides a mock function with given fields: childStorageKey, key

func (*State) GetKeys

func (_m *State) GetKeys(prefix types.StorageKey, blockHash types.Hash) ([]types.StorageKey, error)

GetKeys provides a mock function with given fields: prefix, blockHash

func (*State) GetKeysLatest

func (_m *State) GetKeysLatest(prefix types.StorageKey) ([]types.StorageKey, error)

GetKeysLatest provides a mock function with given fields: prefix

func (*State) GetMetadata

func (_m *State) GetMetadata(blockHash types.Hash) (*types.Metadata, error)

GetMetadata provides a mock function with given fields: blockHash

func (*State) GetMetadataLatest

func (_m *State) GetMetadataLatest() (*types.Metadata, error)

GetMetadataLatest provides a mock function with given fields:

func (*State) GetRuntimeVersion

func (_m *State) GetRuntimeVersion(blockHash types.Hash) (*types.RuntimeVersion, error)

GetRuntimeVersion provides a mock function with given fields: blockHash

func (*State) GetRuntimeVersionLatest

func (_m *State) GetRuntimeVersionLatest() (*types.RuntimeVersion, error)

GetRuntimeVersionLatest provides a mock function with given fields:

func (*State) GetStorage

func (_m *State) GetStorage(key types.StorageKey, target interface{}, blockHash types.Hash) (bool, error)

GetStorage provides a mock function with given fields: key, target, blockHash

func (*State) GetStorageHash

func (_m *State) GetStorageHash(key types.StorageKey, blockHash types.Hash) (types.Hash, error)

GetStorageHash provides a mock function with given fields: key, blockHash

func (*State) GetStorageHashLatest

func (_m *State) GetStorageHashLatest(key types.StorageKey) (types.Hash, error)

GetStorageHashLatest provides a mock function with given fields: key

func (*State) GetStorageLatest

func (_m *State) GetStorageLatest(key types.StorageKey, target interface{}) (bool, error)

GetStorageLatest provides a mock function with given fields: key, target

func (*State) GetStorageRaw

func (_m *State) GetStorageRaw(key types.StorageKey, blockHash types.Hash) (*types.StorageDataRaw, error)

GetStorageRaw provides a mock function with given fields: key, blockHash

func (*State) GetStorageRawLatest

func (_m *State) GetStorageRawLatest(key types.StorageKey) (*types.StorageDataRaw, error)

GetStorageRawLatest provides a mock function with given fields: key

func (*State) GetStorageSize

func (_m *State) GetStorageSize(key types.StorageKey, blockHash types.Hash) (types.U64, error)

GetStorageSize provides a mock function with given fields: key, blockHash

func (*State) GetStorageSizeLatest

func (_m *State) GetStorageSizeLatest(key types.StorageKey) (types.U64, error)

GetStorageSizeLatest provides a mock function with given fields: key

func (*State) QueryStorage

func (_m *State) QueryStorage(keys []types.StorageKey, startBlock types.Hash, block types.Hash) ([]types.StorageChangeSet, error)

QueryStorage provides a mock function with given fields: keys, startBlock, block

func (*State) QueryStorageAt

func (_m *State) QueryStorageAt(keys []types.StorageKey, block types.Hash) ([]types.StorageChangeSet, error)

QueryStorageAt provides a mock function with given fields: keys, block

func (*State) QueryStorageAtLatest

func (_m *State) QueryStorageAtLatest(keys []types.StorageKey) ([]types.StorageChangeSet, error)

QueryStorageAtLatest provides a mock function with given fields: keys

func (*State) QueryStorageLatest

func (_m *State) QueryStorageLatest(keys []types.StorageKey, startBlock types.Hash) ([]types.StorageChangeSet, error)

QueryStorageLatest provides a mock function with given fields: keys, startBlock

func (*State) SubscribeRuntimeVersion

func (_m *State) SubscribeRuntimeVersion() (*state.RuntimeVersionSubscription, error)

SubscribeRuntimeVersion provides a mock function with given fields:

func (*State) SubscribeStorageRaw

func (_m *State) SubscribeStorageRaw(keys []types.StorageKey) (*state.StorageSubscription, error)

SubscribeStorageRaw provides a mock function with given fields: keys

Jump to

Keyboard shortcuts

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