Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Err ¶
Asserts that the provided error is non-nil (using `require.Error`) and returns it, typically used in tests to verify error conditions while discarding an associated unused value of type T.
func ErrB ¶
Panics if the provided error is nil, otherwise returns it; the first argument of type T is ignored and used for context in testing scenarios.
func NoErr ¶
Asserts that an error is nil during testing, returning the corresponding value if no error occurred.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.