testutil

package
v0.0.0-...-cc3bc86 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HexToBytes

func HexToBytes(t *testing.T, hexStr string) []byte

HexToBytes convert hex string to bytes

func Must

func Must[T any](v T, err error) T

Must a helper that terminates the program if the error is not nil.

func NoError

func NoError(err error)

NoError terminates the program if the error is not nil.

Types

This section is empty.

Directories

Path Synopsis
Package nullify provides methods to init nil values structs for test assertion.
Package nullify provides methods to init nil values structs for test assertion.

Jump to

Keyboard shortcuts

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