MCPcopy
hub / github.com/expr-lang/expr / Equalf

Method Equalf

internal/testify/assert/assertion_forward.go:218–223  ·  view source on GitHub ↗

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{})

Source from the content-addressed store, hash-verified

216// referenced values (as opposed to the memory addresses). Function equality
217// cannot be determined and will always fail.
218func (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//

Callers

nothing calls this directly

Calls 2

EqualfFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected