Documentation
¶
Index ¶
- func MakeAddress() cipher.Address
- func PrepareDB(t *testing.T) (*dbutil.DB, func())
- func RandBytes(t *testing.T, n int) []byte
- func RandSHA256(t *testing.T) cipher.SHA256
- func RandSig(t *testing.T) cipher.Sig
- func RequireError(t *testing.T, err error, msg string)
- func SHA256FromHex(t *testing.T, hex string) cipher.SHA256
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrepareDB ¶
PrepareDB creates and opens a temporary test DB and returns it with a cleanup callback
func RandSHA256 ¶
RandSHA256 returns a random SHA256 hash
func RequireError ¶
RequireError requires that an error is not nil and that its message matches
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.