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

Method NotEqual

assert/assertion_forward.go:1233–1238  ·  view source on GitHub ↗

NotEqual asserts that the specified values are NOT equal. a.NotEqual(obj1, obj2) Pointer variable equality is determined based on the equality of the referenced values (as opposed to the memory addresses).

(expected interface{}, actual interface{}, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

1231// Pointer variable equality is determined based on the equality of the
1232// referenced values (as opposed to the memory addresses).
1233func (a *Assertions) NotEqual(expected interface{}, actual interface{}, msgAndArgs ...interface{}) bool {
1234 if h, ok := a.t.(tHelper); ok {
1235 h.Helper()
1236 }
1237 return NotEqual(a.t, expected, actual, msgAndArgs...)
1238}
1239
1240// NotEqualValues asserts that two objects are not equal even when converted to the same type
1241//

Callers 1

TestNotEqualWrapperFunction · 0.45

Calls 2

NotEqualFunction · 0.70
HelperMethod · 0.65

Tested by 1

TestNotEqualWrapperFunction · 0.36