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

Function NotEqualValues

internal/testify/assert/assertions.go:865–875  ·  view source on GitHub ↗

NotEqualValues asserts that two objects are not equal even when converted to the same type assert.NotEqualValues(t, obj1, obj2)

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

Source from the content-addressed store, hash-verified

863//
864// assert.NotEqualValues(t, obj1, obj2)
865func NotEqualValues(t TestingT, expected, actual interface{}, msgAndArgs ...interface{}) bool {
866 if h, ok := t.(tHelper); ok {
867 h.Helper()
868 }
869
870 if ObjectsAreEqualValues(expected, actual) {
871 return Fail(t, fmt.Sprintf("Should not be: %#v\n", actual), msgAndArgs...)
872 }
873
874 return true
875}
876
877// containsElement try loop over the list check if the list includes the element.
878// return (false, false) if impossible.

Callers 4

NotEqualValuesFunction · 0.92
NotEqualValuesfFunction · 0.70
TestNotEqualValuesFunction · 0.70
NotEqualValuesMethod · 0.70

Calls 4

ObjectsAreEqualValuesFunction · 0.85
SprintfMethod · 0.80
FailFunction · 0.70
HelperMethod · 0.45

Tested by 1

TestNotEqualValuesFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…