testutil

package
v0.0.0-...-b416896 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AtomicAbort

func AtomicAbort(id uint64) func(g *CommandGenerator) StoreCommand

func AtomicCommit

func AtomicCommit(id uint64) func(g *CommandGenerator) StoreCommand

func AtomicPrepare

func AtomicPrepare(id uint64, ops ...OPCommand) func(g *CommandGenerator) StoreCommand

func Commit

func Commit(ops ...OPCommand) func(g *CommandGenerator) StoreCommand

func K

func K(idx int) []byte

func MakeAtomicModeContext

func MakeAtomicModeContext(cms sdk.CommitMultiStore, lkmgr types.OPManager) sdk.Context

func MakeBasicModeContext

func MakeBasicModeContext(cms sdk.CommitMultiStore, lkmgr types.OPManager) sdk.Context

func MakeCMStore

func MakeCMStore(t *testing.T, key sdk.StoreKey) sdk.CommitMultiStore

func MakeCodec

func MakeCodec() codec.Codec

func MakeContext

func MakeContext(cms sdk.CommitMultiStore) sdk.Context

func Query

func Query(ops ...OPCommand) func(g *CommandGenerator) StoreCommand

func V

func V(idx int) []byte

Types

type Command

type Command func(g *CommandGenerator) StoreCommand

type CommandGenerator

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

func (*CommandGenerator) AtomicAbort

func (g *CommandGenerator) AtomicAbort(id uint64) StoreCommand

func (*CommandGenerator) AtomicCommit

func (g *CommandGenerator) AtomicCommit(id uint64) StoreCommand

func (*CommandGenerator) AtomicPrepare

func (g *CommandGenerator) AtomicPrepare(id uint64, ops ...OPCommand) StoreCommand

func (*CommandGenerator) Commit

func (g *CommandGenerator) Commit(ops ...OPCommand) StoreCommand

func (*CommandGenerator) Query

func (g *CommandGenerator) Query(ops ...OPCommand) StoreCommand

type OPCommand

type OPCommand func(ctx sdk.Context, store types.StoreI)

func ExpectErrIndefiniteState

func ExpectErrIndefiniteState(t *testing.T, op OPCommand) OPCommand

type StoreCommand

type StoreCommand func(store types.StoreI)

Jump to

Keyboard shortcuts

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