Documentation
¶
Overview ¶
Package assert has test assertions.
Index ¶
- func Equal[T any](t *testing.T, got, want T)
- func Equalish(t *testing.T, got, want, delta float64)
- func ErrorAs(t *testing.T, got error, target any)
- func ErrorIs(t *testing.T, got, want error)
- func False(t *testing.T, got bool)
- func MatchesRegexp(t *testing.T, got, pattern string)
- func Nil(t *testing.T, got any)
- func NotEqual[T any](t *testing.T, got, want T)
- func NotNil(t *testing.T, got any)
- func True(t *testing.T, got bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MatchesRegexp ¶
MatchesRegexp asserts a value matches a regex expression.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.