util

package
v0.0.0-...-dfc2b99 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: ISC, ISC Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckError

func CheckError(t *testing.T, testName string, gotErr er.R, wantErrCode *er.ErrorCode) bool

CheckError ensures the passed error has an error code that matches the passed error code.

func CloneBytes

func CloneBytes(b []byte) []byte

func DecodeHex

func DecodeHex(s string) ([]byte, er.R)

func Exists

func Exists(path string) bool

func IsNil

func IsNil(i interface{}) bool

func ReadBin

func ReadBin(r io.Reader, order binary.ByteOrder, data interface{}) er.R

func ReadFull

func ReadFull(r io.Reader, buf []byte) (int, er.R)

func RequireErr

func RequireErr(t require.TestingT, err er.R, msgAndArgs ...interface{})

func RequireNoErr

func RequireNoErr(t require.TestingT, err er.R, msgAndArgs ...interface{})

func Write

func Write(w io.Writer, b []byte) (int, er.R)

func WriteBin

func WriteBin(w io.Writer, order binary.ByteOrder, data interface{}) er.R

Types

This section is empty.

Jump to

Keyboard shortcuts

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