testutil

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustHex

func MustHex(t testing.TB, s string) []byte

MustHex decodes the hexadecimal string s or fails the test immediately.

It accepts testing.TB to support both *testing.T and *testing.B callers without forcing packages to duplicate helper shims.

func OptionalHex

func OptionalHex(t testing.TB, s *string) []byte

OptionalHex decodes the pointed-to string if present, otherwise returning nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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