assert

package
v2.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

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

*

  • Asserts that the expected and actual values are equal.

func NotPanics added in v2.1.5

func NotPanics(t *testing.T, f func())

*

  • Asserts that the function not panics.

func PanicsWith

func PanicsWith(t *testing.T, expected any, f func())

*

  • Asserts that the function panics with the expected object.

func PanicsWithError

func PanicsWithError(t *testing.T, expected string, f func())

*

  • Asserts that the function panics with the expected error.

func True

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

*

  • Asserts that the actual 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