Documentation ¶
Index ¶
- func AssertEqual(t *testing.T, expected, actual interface{}, opts ...cmp.Option)
- func AssertErrorAs[T any](t *testing.T, err error, msg ...string)
- func AssertErrorIs(t *testing.T, err, expErr error, msg ...string)
- func AssertNoError(t *testing.T, err error, msg ...string)
- func AssertTrue(t *testing.T, condition bool, msg ...string)
- func Callers() string
- func Diff[T any](got, want T, opts ...cmp.Option) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertEqual ¶
AssertEqual checks if the expected and actual are equal. Errors if not.
func AssertErrorAs ¶
AsserterrorAs checks if the error is another error.
func AssertErrorIs ¶
AssertErrorIs checks if the error is another error.
func AssertNoError ¶
AssertNoError checks if the error is nil.
func AssertTrue ¶
AssertTrue checks if the condition is true. Errors if not.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.