mocks

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: Apache-2.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 KVStoreWrapper

type KVStoreWrapper[T proto.Message] struct {
	mock.Mock
}

KVStoreWrapper is an autogenerated mock type for the KVStoreWrapper type

func NewKVStoreWrapper

func NewKVStoreWrapper[T proto.Message](t interface {
	mock.TestingT
	Cleanup(func())
},
) *KVStoreWrapper[T]

NewKVStoreWrapper creates a new instance of KVStoreWrapper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*KVStoreWrapper[T]) Get

func (_m *KVStoreWrapper[T]) Get(ctx types.Context, key keeper.Byter) (T, error)

Get provides a mock function with given fields: ctx, key

func (*KVStoreWrapper[T]) Iterate

func (_m *KVStoreWrapper[T]) Iterate(ctx types.Context, fn func([]byte, T) bool) error

Iterate provides a mock function with given fields: ctx, fn

func (*KVStoreWrapper[T]) Set

func (_m *KVStoreWrapper[T]) Set(ctx types.Context, key keeper.Byter, value T) error

Set provides a mock function with given fields: ctx, key, value

type KeeperUtilI

type KeeperUtilI[T codec.ProtoMarshaler] struct {
	mock.Mock
}

KeeperUtilI is an autogenerated mock type for the KeeperUtilI type

func NewKeeperUtilI

func NewKeeperUtilI[T codec.ProtoMarshaler](t mockConstructorTestingTNewKeeperUtilI) *KeeperUtilI[T]

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

func (*KeeperUtilI[T]) Load

func (_m *KeeperUtilI[T]) Load(store types.KVStore, pu keeper.ProtoUnmarshaler, key []byte) (T, error)

Load provides a mock function with given fields: store, pu, key

func (*KeeperUtilI[T]) Save

func (_m *KeeperUtilI[T]) Save(store types.KVStore, pm keeper.ProtoMarshaler, key []byte, val codec.ProtoMarshaler) error

Save provides a mock function with given fields: store, pm, key, val

type StoreGetter

type StoreGetter struct {
	mock.Mock
}

StoreGetter is an autogenerated mock type for the StoreGetter type

func NewStoreGetter

func NewStoreGetter(t mockConstructorTestingTNewStoreGetter) *StoreGetter

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

func (*StoreGetter) Store

func (_m *StoreGetter) Store(ctx types.Context) storetypes.KVStore

Store provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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