Equalf asserts that two objects are equal. a.Equalf(123, 123, "error message %s", "formatted") Pointer variable equality is determined based on the equality of the referenced values (as opposed to the memory addresses). Function equality cannot be determined and will always fail.
(expected interface{}, actual interface{}, msg string, args ...interface{})
| 216 | // referenced values (as opposed to the memory addresses). Function equality |
| 217 | // cannot be determined and will always fail. |
| 218 | func (a *Assertions) Equalf(expected interface{}, actual interface{}, msg string, args ...interface{}) bool { |
| 219 | if h, ok := a.t.(tHelper); ok { |
| 220 | h.Helper() |
| 221 | } |
| 222 | return Equalf(a.t, expected, actual, msg, args...) |
| 223 | } |
| 224 | |
| 225 | // Error asserts that a function returned an error (i.e. not `nil`). |
| 226 | // |