test

package
v0.1.0-alpha.35 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertHexEqual

func AssertHexEqual(t *testing.T, expected string, b []byte, msgAndArgs ...interface{})

AssertHexEqual compares expected hex string with bytes.

func AssertHexGreater

func AssertHexGreater(t *testing.T, a, b []byte, msgAndArgs ...interface{})

AssertHexGreater asserts hex(a) > hex(b) lexicographically.

func AssertHexLess

func AssertHexLess(t *testing.T, a, b []byte, msgAndArgs ...interface{})

AssertHexLess asserts hex(a) < hex(b) lexicographically.

func AssertHexLessOrEqual

func AssertHexLessOrEqual(t *testing.T, a, b []byte, msgAndArgs ...interface{})

AssertHexLessOrEqual asserts hex(a) <= hex(b) lexicographically.

func CapturePanicMessage

func CapturePanicMessage(f func()) (msg string, ok bool)

CapturePanicMessage is a test helper shared across tests to capture a panic string.

func HexEncode

func HexEncode(b []byte) string

HexEncode returns the lowercase hex encoding of the provided bytes. Exported so other packages in tests can reuse it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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