testutil

package
v0.0.0-...-bebc87d Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2014 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBlockOrFail

func NewBlockOrFail(t *testing.T, msgData string) blocks.Block

NewBlockOrFail returns a block created from msgData. Signals test failure if creation fails.

NB: NewBlockOrFail accepts a msgData parameter to avoid non-determinism in tests. Generating random block data could potentially result in unexpected behavior in tests. Thus, it is left up to the caller to select the msgData that will determine the blocks key.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳