testutil

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TestXPub chainkd.XPub
	TestXPrv chainkd.XPrv
	TestPub  ed25519.PublicKey
	TestPubs []ed25519.PublicKey
)
View Source
var (
	MaxHash = &bc.Hash{V0: 1<<64 - 1, V1: 1<<64 - 1, V2: 1<<64 - 1, V3: 1<<64 - 1}
	MinHash = &bc.Hash{}
)

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 FatalErr

func FatalErr(t testing.TB, err error)

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