testutil

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: May 23, 2020 License: AGPL-3.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TestXPub chainkd.XPub
	TestXPrv chainkd.XPrv
	TestPub  ed25519.PublicKey
	TestPubs []ed25519.PublicKey
)

Functions

func DeepEqual

func DeepEqual(x, y interface{}) bool

DeepEqual is similar to reflect.DeepEqual, but treats nil as equal to empty maps and slices. Some of the implementation is cribbed from Go's reflect package.

func MustDecodeAsset

func MustDecodeAsset(s string) (h bc.AssetID)

func MustDecodeHash

func MustDecodeHash(s string) (h bc.Hash)

func MustDecodeHexString

func MustDecodeHexString(s string) []byte

func Serialize

func Serialize(t *testing.T, wt io.WriterTo) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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