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

Function NotEqual

internal/testify/require/require.go:1471–1479  ·  view source on GitHub ↗

NotEqual asserts that the specified values are NOT equal. assert.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

1469// Pointer variable equality is determined based on the equality of the
1470// referenced values (as opposed to the memory addresses).
1471func NotEqual(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{}) {
1472 if h, ok := t.(tHelper); ok {
1473 h.Helper()
1474 }
1475 if assert.NotEqual(t, expected, actual, msgAndArgs...) {
1476 return
1477 }
1478 t.FailNow()
1479}
1480
1481// NotEqualValues asserts that two objects are not equal even when converted to the same type
1482//

Callers 2

NotEqualMethod · 0.70
TestNotEqualFunction · 0.70

Calls 3

NotEqualFunction · 0.92
FailNowMethod · 0.65
HelperMethod · 0.45

Tested by 1

TestNotEqualFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…