Documentation ¶
Index ¶
- func ElementsMatch[S ~[]E, E any](t *testing.T, a, b S)
- func Equal[T any](t *testing.T, a, b T)
- func ErrorContains(t *testing.T, err error, str string)
- func ErrorIs(t *testing.T, err error, target error)
- func IsNil(t *testing.T, obj any)
- func NotEqual[T any](t *testing.T, a, b T)
- func PanicMsgContains(t *testing.T, f func(), str string)
- func Panics(t *testing.T, f func())
- func Same[T any](t *testing.T, a, b *T)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ElementsMatch ¶
ElementsMatch checks whether the given slices contain the same elements.
func ErrorContains ¶
ErrorContains checks whether the given error contains the specified string.
func PanicMsgContains ¶ added in v0.8.0
PanicMsgContains checks whether a function panics with a message containing the given string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.