Documentation
¶
Overview ¶
Package testutil exposes assert utilities used in the project to make things simpler to read.
Index ¶
- func Contains(t testing.TB, expected string, value string)
- func DeepEquals[T any](t testing.TB, expected, actual T)
- func Equals[T comparable](t testing.TB, expected, actual T)
- func ErrorIs(t testing.TB, expected, actual error)
- func EventIs[T event.Event](t testing.TB, source event.Source, index int) (result T)
- func HasLength[T any](t testing.TB, arr []T, length int)
- func HasNChars[T ~string](t testing.TB, expected int, value T)
- func HasNEvents(t testing.TB, source event.Source, expected int)
- func IsFalse(t testing.TB, expr bool)
- func IsNil(t testing.TB, expr any)
- func IsNotNil(t testing.TB, expr any)
- func IsTrue(t testing.TB, expr bool)
- func Match(t testing.TB, re string, value string)
- func NotEquals[T comparable](t testing.TB, expected, actual T)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeepEquals ¶
func Equals ¶
func Equals[T comparable](t testing.TB, expected, actual T)
func NotEquals ¶
func NotEquals[T comparable](t testing.TB, expected, actual T)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.