testutil

package
v1.19.3 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateExpectations

func CreateExpectations(
	t *testing.T,
	block *nodeTypes.BlockData,
	now time.Time,
	m cosmosTypes.Msg,
	position int,
	txType storageTypes.MsgType,
	size int,
) storage.Message

CreateExpectations builds the expected storage.Message for a decoded message test. In each test a fresh context is used, so the msgCounter always starts at 0: SetId(0) with height=0 gives id=1.

func MustMsgToMap

func MustMsgToMap(t *testing.T, msg cosmosTypes.Msg) storageTypes.PackedBytes

Types

This section is empty.

Jump to

Keyboard shortcuts

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