Documentation
¶
Index ¶
- func CheckIsErr(t testing.TB, err error, msg string)
- func CheckMarshal(t *testing.T, x, y interface{ ... })
- func CheckNoErr(t testing.TB, err error, msg string)
- func CheckOk(result bool, msg string, t testing.TB)
- func CheckPanic(f func()) error
- func ReadGzip(path string) ([]byte, error)
- func ReportError(t testing.TB, got, want interface{}, inputs ...interface{})
- type HexBytes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIsErr ¶
CheckIsErr fails if err ==nil. Print msg as an error message.
func CheckMarshal ¶ added in v1.6.2
func CheckMarshal( t *testing.T, x, y interface { encoding.BinaryMarshaler encoding.BinaryUnmarshaler }, )
func CheckNoErr ¶
CheckNoErr fails if err !=nil. Print msg as an error message.
func CheckPanic ¶
func CheckPanic(f func()) error
CheckPanic returns true if call to function 'f' caused panic.
func ReportError ¶
ReportError reports an error if got is different from want.
Types ¶
Click to show internal directories.
Click to hide internal directories.