testutil

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateEqualFractionalBalances

func GenerateEqualFractionalBalances(
	t *testing.T,
	count int,
) types.FractionalBalances

GenerateEqualFractionalBalances generates count number of FractionalBalances with randomly generated amounts such that the sum of all amounts is a multiple of types.CONVERSION_FACTOR. If a remainder is desired, any single FractionalBalance can be removed from the returned slice and used as the remainder.

func GenerateEqualFractionalBalancesWithRemainder

func GenerateEqualFractionalBalancesWithRemainder(
	t *testing.T,
	count int,
) (types.FractionalBalances, sdkmath.Int)

GenerateEqualFractionalBalancesWithRemainder generates count number of FractionalBalances with randomly generated amounts as well as a non-zero remainder. 0 == (sum(FractionalBalances) + remainder) % conversionFactor Where remainder > 0

Types

This section is empty.

Jump to

Keyboard shortcuts

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