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

Function NotEqual

require/require.go:1552–1560  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

1550// Pointer variable equality is determined based on the equality of the
1551// referenced values (as opposed to the memory addresses).
1552func NotEqual(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{}) {
1553 if h, ok := t.(tHelper); ok {
1554 h.Helper()
1555 }
1556 if assert.NotEqual(t, expected, actual, msgAndArgs...) {
1557 return
1558 }
1559 t.FailNow()
1560}
1561
1562// NotEqualValues asserts that two objects are not equal even when converted to the same type
1563//

Callers 3

Test_Mock_UnsetFunction · 0.92
NotEqualMethod · 0.70
TestNotEqualFunction · 0.70

Calls 3

NotEqualFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by 2

Test_Mock_UnsetFunction · 0.74
TestNotEqualFunction · 0.56