testutil

package
v1.0.0-rc.13 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package testutil contains utilities for writing Go tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandByteSlice

func RandByteSlice[I constraints.Integer](ln I) []byte

RandByteSlice returns randomized byte slice of specified length.

func RandRead

func RandRead(b []byte)

RandRead randomizes b bytes.

func RandScriptHash

func RandScriptHash() util.Uint160

RandScriptHash returns random 20-byte array.

Types

This section is empty.

Jump to

Keyboard shortcuts

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