assert

package
v0.0.0-...-46fca04 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: MIT, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMock = errors.New("an error")
)

Functions

func Equal

func Equal(t tassert.TestingT, expected, actual interface{}, msgAndArgs ...interface{}) bool

func Error

func Error(t tassert.TestingT, err error, msgAndArgs ...interface{}) bool

func NoError

func NoError(t tassert.TestingT, err error, msgAndArgs ...interface{}) bool

func NoPanic

func NoPanic(t tassert.TestingT, f func())

func NotEqual

func NotEqual(t tassert.TestingT, expected, actual interface{}, msgAndArgs ...interface{}) bool

func NotNil

func NotNil(t tassert.TestingT, object interface{}, msgAndArgs ...interface{}) bool

func Panic

func Panic(t tassert.TestingT, f func())

func True

func True(t tassert.TestingT, value bool, msgAndArgs ...interface{}) bool

func WantError

func WantError(t tassert.TestingT, want bool, err error, msgAndArgs ...interface{}) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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