test

package
v0.0.0-...-8e3605f Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIsErr

func CheckIsErr(t testing.TB, err error, msg string)

CheckIsErr fails if err ==nil. Print msg as an error message.

func CheckNoErr

func CheckNoErr(t testing.TB, err error, msg string)

CheckNoErr fails if err !=nil. Print msg as an error message.

func CheckOk

func CheckOk(result bool, msg string, t testing.TB)

CheckOk fails the test if result == false.

func CheckPanic

func CheckPanic(f func()) error

CheckPanic returns true if call to function 'f' caused panic.

func ReportError

func ReportError(t testing.TB, got, want interface{}, inputs ...interface{})

ReportError reports an error if got is different from want.

Types

This section is empty.

Jump to

Keyboard shortcuts

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