util

package
v0.0.0-...-46f88e6 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 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