Documentation
¶
Index ¶
- func AssertEqual(t *testing.T, subject, expected any)
- func AssertEqualFn(t *testing.T) func(subject, expected any)
- func AssertEqualWithErrorFn(t *testing.T) func(got any, gotErr error) func(expected any, expectedErr error)
- func Compare(a, b any) bool
- func Format(a any) string
- func NoError(t *testing.T, err error)
- type ErrorAsserter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertEqual ¶
func AssertEqualFn ¶
func AssertEqualWithErrorFn ¶ added in v0.2.0
Types ¶
type ErrorAsserter ¶
func ExpectedErrorChecks ¶
func ExpectedErrorChecks(expected ...func(*testing.T, error)) ErrorAsserter
func ExpectedErrorIs ¶
func ExpectedErrorIs(allExpectedErrors ...error) ErrorAsserter
func ExpectedErrorOfType ¶
func ExpectedErrorOfType[T error](assertsOnType ...func(*testing.T, T)) ErrorAsserter
func ExpectedErrorStringContains ¶
func ExpectedErrorStringContains(str string) ErrorAsserter
Click to show internal directories.
Click to hide internal directories.