Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequireEqual ¶
func RequireEqual[T any](t TestingInterface, input T, expected T, options ...TestOption)
RequireEqual Fails the test if "input" and "expected" are not deeply equal. Returns true otherwise. You can also pass an extra message to show using the "WithExtraMessage" option.
Types ¶
type TestOption ¶
type TestOption func(options *testOptions)
func WithExtraMessage ¶
func WithExtraMessage(message string, messageArgs ...any) TestOption
type TestingInterface ¶
Click to show internal directories.
Click to hide internal directories.