Documentation
¶
Overview ¶
Package testutils is the legacy shared assertion import path.
New code should import the focused replacement package:
import "github.com/InsideGallery/core/testassert"
Compatibility: existing assertion helpers remain available for downstream tests that still import testutils. Do not add new assertions here; add them to testassert so new tests avoid the legacy aggregate path.
Index ¶
- func ApproximatelyEqual(a, b float64) bool
- func Equal(t testing.TB, received, expected interface{})
- func EqualError(v, e error) bool
- func EqualJSON(t testing.TB, received, expected []byte)
- func IsEqual(received, expected interface{}) bool
- func NotEqual(t testing.TB, received, expected interface{})
- func NotEqualJSON(t testing.TB, received, expected []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApproximatelyEqual ¶
ApproximatelyEqual function to test if two real numbers are (almost) equal
func IsEqual ¶
func IsEqual(received, expected interface{}) bool
IsEqual check if two interface equal
func NotEqualJSON ¶
NotEqualJSON compare JSONs
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.