...

Package test

import "github.com/cloudflare/circl/internal/test"
Overview
Index

Overview ▾

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.