testutil

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 License: Apache-2.0, Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AssetDecimals = 18
)

Variables

This section is empty.

Functions

func AssertEqualEntityIDs

func AssertEqualEntityIDs(t *testing.T, a store.EntityID, b store.EntityID, msgAndArgs ...interface{})

func AssertEqualHex

func AssertEqualHex(t *testing.T, exp string, actual []byte)

func AssertEqualInts

func AssertEqualInts(t *testing.T, a sdk.Int, b sdk.Int, msgAndArgs ...interface{})

func AssertEqualUints

func AssertEqualUints(t *testing.T, a sdk.Uint, b sdk.Uint, msgAndArgs ...interface{})

func DaemonPorts

func DaemonPorts() (int, int, int)

func DummyContext

func DummyContext() sdk.Context

func FreePort

func FreePort() int

func GetBinDir

func GetBinDir() string

func MustGetBinDir

func MustGetBinDir() string

func MustUnmarshalJSON

func MustUnmarshalJSON(t *testing.T, data []byte, proto interface{})

func Rand32

func Rand32() []byte

func RandAddr

func RandAddr() sdk.AccAddress

func TmpDir

func TmpDir(t *testing.T) (string, func())

func ToBaseUnits

func ToBaseUnits(n uint64) sdk.Uint

func ToBaseUnitsDecimals

func ToBaseUnitsDecimals(n uint64, decimals int) sdk.Uint

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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