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

Method NotEqual

require/require_forward.go:1234–1239  ·  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

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

Callers 3

TestTwoMethod · 0.45
TestSubtestMethod · 0.45
TestNotEqualWrapperFunction · 0.45

Calls 2

NotEqualFunction · 0.70
HelperMethod · 0.65

Tested by 3

TestTwoMethod · 0.36
TestSubtestMethod · 0.36
TestNotEqualWrapperFunction · 0.36