mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorStoreAccess = errors.New("store", 1, "error accessing store")

Functions

func GlobalFeeKeeper

func GlobalFeeKeeper() (*keeper.Keeper, sdk.Context)

Types

type FailingMethod

type FailingMethod string
const (
	Get             FailingMethod = "get"
	Has             FailingMethod = "has"
	Set             FailingMethod = "set"
	Delete          FailingMethod = "delete"
	Iterator        FailingMethod = "iterator"
	ReverseIterator FailingMethod = "reverseIterator"
)

type StoreService

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

func FailingStore

func FailingStore(failingMethod FailingMethod, original types.KVStore) *StoreService

FailingStore returns a store.KVStoreService that can be used to test specific errors within collections.

func (StoreService) NewStoreContext

func (s StoreService) NewStoreContext() context.Context

func (StoreService) OpenKVStore

func (s StoreService) OpenKVStore(_ context.Context) store.KVStore

Jump to

Keyboard shortcuts

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