Documentation
¶
Overview ¶
Package assert holds the handful of test helpers the core module uses.
It exists so that the root module keeps a completely empty dependency list, test dependencies included. Anything more elaborate than this belongs in a test, not in a helper.
Index ¶
- func DeepEqual(t testing.TB, got, want any, what string)
- func Equal[T comparable](t testing.TB, got, want T, what string)
- func Error(t testing.TB, err error, what string)
- func ErrorIs(t testing.TB, err, target error, what string)
- func False(t testing.TB, cond bool, what string)
- func NoError(t testing.TB, err error, what string)
- func True(t testing.TB, cond bool, what string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Equal ¶
func Equal[T comparable](t testing.TB, got, want T, what string)
Equal fails the test unless got and want are equal.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.