package test

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

Index

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.

Source Files

test.go

Version
v1.6.1 (latest)
Published
Apr 9, 2025
Platform
linux/amd64
Imports
4 packages
Last checked
5 hours ago

Tools for package owners.