assert

package
v0.0.0-...-adb3c02 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompleteWithin

func CompleteWithin(t testing.TB, waitDur time.Duration, cond func() bool)

CompleteWithin fails the test when cond doesn't succeed within waitDur.

func Equal

func Equal(t testing.TB, expected interface{}, actual interface{})

Equal fails the test when expected is not equal to actual.

func Nil

func Nil(t testing.TB, obj interface{})

Nil fails the test when obj is not nil.

func NotNil

func NotNil(t testing.TB, obj interface{})

NotNil fails the test when obj is nil.

func Panic

func Panic(t testing.TB, expectedMessage string, f func())

Panic fails the test when the test doesn't panic with the expected message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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