Documentation
¶
Index ¶
- func Contains(t reporter, actual []string, expected ...string)
- func Count(t reporter, actual []string, expected int)
- func Empty(t reporter, actual []string)
- func Equal[T comparable](t reporter, actual, expected T, label string)
- func Error(t reporter, err error)
- func ErrorContains(t reporter, err error, expected string)
- func False(t reporter, condition bool, message string)
- func Format(format string, args ...any) string
- func Lines(t reporter, actual, expected []string)
- func NoError(t reporter, err error)
- func NotContains(t reporter, actual []string, unexpected ...string)
- func Prefix(t reporter, actual []string, prefix string)
- func Suffix(t reporter, actual []string, suffix string)
- func True(t reporter, condition bool, message string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Equal ¶
func Equal[T comparable](t reporter, actual, expected T, label string)
Equal compares two values and reports if they differ.
func ErrorContains ¶
ErrorContains verifies that an error contains the expected substring.
func Lines ¶
func Lines(t reporter, actual, expected []string)
Lines verifies that actual output matches expected lines. Reports detailed differences using Errorf if they don't match.
func NotContains ¶
NotContains verifies that the actual output does not contain any of the given strings.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.