testutil

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2018 License: AGPL-3.0 Imports: 13 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 added in v0.4.3

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

func MustDecodeHash added in v0.4.3

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

func Serialize added in v0.4.3

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