assert

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains added in v1.19.0

func Contains[K comparable](t *testing.T, expected K, array []K, message string)

ContainsStr assert that an array contains an expected value

func Equal

func Equal[K comparable](t *testing.T, expected, actual K, message string)

Equal assert that an object is equal to an expected value

func Nil

func Nil(t *testing.T, actual interface{}, message string)

Nil assert that an object is nil

func NotEqual

func NotEqual[K comparable](t *testing.T, expected, actual K, message string)

NotEqual assert that an object is not equal to an expected value

func NotNil

func NotNil(t *testing.T, actual interface{}, message string)

NotNil assert that an object is not nil

func True added in v1.9.0

func True(t *testing.T, expression bool, message string)

True assert that an expression 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