testutil

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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