assert

package module
v0.0.0-...-14e89e5 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(t *testing.T, expected, actual interface{}, msg ...string)

Equal compare if two values are exactly equals.

func EqualValues

func EqualValues(t *testing.T, expected, actual interface{}, msg ...string)

EqualValues compare the underlying values of two types.

func Error

func Error(t *testing.T, err error, msg ...string)

Error assert that error is not nil.

func False

func False(t *testing.T, actual bool, msg ...string)

False asserts that the value is false.

func NoError

func NoError(t *testing.T, err error, msg ...string)

NoError assert that error is nil.

func NotEqual

func NotEqual(t *testing.T, notExpected, actual interface{}, msg ...string)

NotEqual asserts that two values are not equals.

func True

func True(t *testing.T, actual bool, msg ...string)

True asserts that the value is true.

Types

This section is empty.

Jump to

Keyboard shortcuts

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