Documentation
¶
Index ¶
- func Equal(t testing.TB, expected, actual interface{})
- func Equalf(t testing.TB, expected, actual interface{}, format string, args ...interface{})
- func False(t testing.TB, o interface{}, format string, args ...interface{})
- func Match(t testing.TB, expected, actual interface{})
- func Nil(t testing.TB, o interface{})
- func Nilf(t testing.TB, o interface{}, format string, args ...interface{})
- func NotEqual(t testing.TB, expected, actual interface{}, format string, args ...interface{})
- func NotEqualf(t testing.TB, expected, actual interface{}, format string, args ...interface{})
- func NotNil(t testing.TB, o interface{})
- func NotNilf(t testing.TB, o interface{}, format string, args ...interface{})
- func RegisterOpts(t reflect.Type, opts ...cmp.Option)
- func True(t testing.TB, o interface{}, format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Equalf ¶
Equalf compares x and y for equality and fails with the test with the provided formatted message if not
func False ¶
False asserts that the o parameter is a boolean with value false and fails with the test with the provided formatted message if not
func Match ¶
Match compares x and y and ensures there is no diff and fails with the test with the reported differences if not
func Nilf ¶
Nilf asserts that the o parameter is nil and fails with the test with the provided formatted message if not
func NotEqualf ¶
NotEqualf compares x and y for inequality and fails with the test with the provided formatted message if not
func NotNilf ¶
NotNilf asserts that the o parameter is not nil and fails with the test with the provided formatted message if not
func RegisterOpts ¶
RegisterOpts registers go-cmp options for a given type to be used when calling cmp.Diff or cmp.Equal
Types ¶
This section is empty.