package test
import "github.com/cloudflare/circl/internal/test"
Index ¶
- func CheckIsErr(t testing.TB, err error, msg string)
- func CheckNoErr(t testing.TB, err error, msg string)
- func CheckOk(result bool, msg string, t testing.TB)
- func CheckPanic(f func()) error
- func ReportError(t testing.TB, got, want interface{}, inputs ...interface{})
Functions ¶
func CheckIsErr ¶
CheckIsErr fails if err ==nil. Print msg as an error message.
func CheckNoErr ¶
CheckNoErr fails if err !=nil. Print msg as an error message.
func CheckOk ¶
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 ¶
ReportError reports an error if got is different from want.
Source Files ¶
- Version
- v1.6.1 (latest)
- Published
- Apr 9, 2025
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 5 hours ago –
Tools for package owners.