MCPcopy
hub / github.com/stretchr/testify / EqualValuesf

Function EqualValuesf

assert/assertion_format.go:120–125  ·  assert/assertion_format.go::EqualValuesf

EqualValuesf asserts that two objects are equal or convertible to the larger type and equal. assert.EqualValuesf(t, uint32(123), int32(123), "error message %s", "formatted")

(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

118//
119// assert.EqualValuesf(t, uint32(123), int32(123), "error message %s", "formatted")
120func EqualValuesf(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{}) bool {
121 if h, ok := t.(tHelper); ok {
122 h.Helper()
123 }
124 return EqualValues(t, expected, actual, append([]interface{}{msg}, args...)...)
125}
126
127// Errorf asserts that a function returned an error (i.e. not `nil`).
128//

Callers 2

EqualValuesfFunction · 0.92
EqualValuesfMethod · 0.70

Calls 2

EqualValuesFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected