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

Method NotEqualf

assert/assertion_forward.go:1266–1271  ·  view source on GitHub ↗

NotEqualf asserts that the specified values are NOT equal. a.NotEqualf(obj1, obj2, "error message %s", "formatted") Pointer variable equality is determined based on the equality of the referenced values (as opposed to the memory addresses).

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

Source from the content-addressed store, hash-verified

1264// Pointer variable equality is determined based on the equality of the
1265// referenced values (as opposed to the memory addresses).
1266func (a *Assertions) NotEqualf(expected interface{}, actual interface{}, msg string, args ...interface{}) bool {
1267 if h, ok := a.t.(tHelper); ok {
1268 h.Helper()
1269 }
1270 return NotEqualf(a.t, expected, actual, msg, args...)
1271}
1272
1273// NotErrorAs asserts that none of the errors in err's chain matches target,
1274// but if so, sets target to that error value.

Callers

nothing calls this directly

Calls 2

NotEqualfFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected