Documentation
¶
Index ¶
- func DeepEqual(tb assertions.AssertionTestingTB, expected, actual any, msg ...any)
- func DeepNotEqual(tb assertions.AssertionTestingTB, expected, actual any, msg ...any)
- func DeepNotSSZEqual(tb assertions.AssertionTestingTB, expected, actual any, msg ...any)
- func DeepSSZEqual(tb assertions.AssertionTestingTB, expected, actual any, msg ...any)
- func Equal(tb assertions.AssertionTestingTB, expected, actual any, msg ...any)
- func ErrorContains(tb assertions.AssertionTestingTB, want string, err error, msg ...any)
- func LogsContain(tb assertions.AssertionTestingTB, hook *test.Hook, want string, msg ...any)
- func LogsDoNotContain(tb assertions.AssertionTestingTB, hook *test.Hook, want string, msg ...any)
- func NoError(tb assertions.AssertionTestingTB, err error, msg ...any)
- func NotEmpty(tb assertions.AssertionTestingTB, obj any, msg ...any)
- func NotEqual(tb assertions.AssertionTestingTB, expected, actual any, msg ...any)
- func NotNil(tb assertions.AssertionTestingTB, obj any, msg ...any)
- func StringContains(tb assertions.AssertionTestingTB, expected, actual string, msg ...any)
- func StringNotContains(tb assertions.AssertionTestingTB, expected, actual string, msg ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeepEqual ¶
func DeepEqual(tb assertions.AssertionTestingTB, expected, actual any, msg ...any)
DeepEqual compares values using DeepEqual. NOTE: this function does not work for checking arrays/slices or maps of protobuf messages. For arrays/slices, please use DeepSSZEqual. For maps, please iterate through and compare the individual keys and values.
func DeepNotEqual ¶
func DeepNotEqual(tb assertions.AssertionTestingTB, expected, actual any, msg ...any)
DeepNotEqual compares values using DeepEqual. NOTE: this function does not work for checking arrays/slices or maps of protobuf messages. For arrays/slices, please use DeepNotSSZEqual. For maps, please iterate through and compare the individual keys and values.
func DeepNotSSZEqual ¶
func DeepNotSSZEqual(tb assertions.AssertionTestingTB, expected, actual any, msg ...any)
DeepNotSSZEqual compares values using ssz.DeepEqual.
func DeepSSZEqual ¶
func DeepSSZEqual(tb assertions.AssertionTestingTB, expected, actual any, msg ...any)
DeepSSZEqual compares values using ssz.DeepEqual.
func Equal ¶
func Equal(tb assertions.AssertionTestingTB, expected, actual any, msg ...any)
Equal compares values using comparison operator.
func ErrorContains ¶
func ErrorContains(tb assertions.AssertionTestingTB, want string, err error, msg ...any)
ErrorContains asserts that actual error contains wanted message.
func LogsContain ¶
func LogsContain(tb assertions.AssertionTestingTB, hook *test.Hook, want string, msg ...any)
LogsContain checks that the desired string is a subset of the current log output.
func LogsDoNotContain ¶
func LogsDoNotContain(tb assertions.AssertionTestingTB, hook *test.Hook, want string, msg ...any)
LogsDoNotContain is the inverse check of LogsContain.
func NoError ¶
func NoError(tb assertions.AssertionTestingTB, err error, msg ...any)
NoError asserts that error is nil.
func NotEmpty ¶
func NotEmpty(tb assertions.AssertionTestingTB, obj any, msg ...any)
NotEmpty checks that the object fields are not empty. This method also checks all of the pointer fields to ensure none of those fields are empty.
func NotEqual ¶
func NotEqual(tb assertions.AssertionTestingTB, expected, actual any, msg ...any)
NotEqual compares values using comparison operator.
func NotNil ¶
func NotNil(tb assertions.AssertionTestingTB, obj any, msg ...any)
NotNil asserts that passed value is not nil.
func StringContains ¶
func StringContains(tb assertions.AssertionTestingTB, expected, actual string, msg ...any)
StringContains asserts a string contains specified substring.
func StringNotContains ¶
func StringNotContains(tb assertions.AssertionTestingTB, expected, actual string, msg ...any)
StringNotContains asserts a string does not contain specified substring.
Types ¶
This section is empty.