testhelper

package
v0.0.0-...-286e5f1 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEqual

func AssertEqual(t testing.TB, expected, actual interface{}, ignoreFields ...string)

If the comparison fails, it does not kill the execution. When comparing maps, ignoreFields only applies for structs that are the values of the map. Unexported fields are ignored. Uses methods from https://pkg.go.dev/github.com/stretchr/testify/assert.

func RequireEqual

func RequireEqual(t testing.TB, expected, actual interface{}, ignoreFields ...string)

If the comparison fails, it kills the execution. When comparing maps, ignoreFields only applies for structs that are the values of the map. Unexported fields are ignored. Uses methods from https://pkg.go.dev/github.com/stretchr/testify/require.

Types

This section is empty.

Jump to

Keyboard shortcuts

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