testutils

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

README

testutils

Helper to build tests

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApproximatelyEqual

func ApproximatelyEqual(a, b float64) bool

ApproximatelyEqual function to test if two real numbers are (almost) equal

func Equal

func Equal(t testing.TB, received, expected interface{})

Equal checks if two variables are equal

func EqualError

func EqualError(v, e error) bool

EqualError return true if two errors are equal

func EqualJSON

func EqualJSON(t testing.TB, received, expected []byte)

EqualJSON compare JSONs

func IsEqual

func IsEqual(received, expected interface{}) bool

IsEqual check if two interface equal

func NotEqual

func NotEqual(t testing.TB, received, expected interface{})

NotEqual checks if two variables are not equal

func NotEqualJSON

func NotEqualJSON(t testing.TB, received, expected []byte)

NotEqualJSON compare JSONs

Types

This section is empty.

Jump to

Keyboard shortcuts

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