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

Function NotEqualValues

assert/assertions.go:901–911  ·  assert/assertions.go::NotEqualValues

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

899//
900// assert.NotEqualValues(t, obj1, obj2)
901func NotEqualValues(t TestingT, expected, actual interface{}, msgAndArgs ...interface{}) bool {
902 if h, ok := t.(tHelper); ok {
903 h.Helper()
904 }
905
906 if ObjectsAreEqualValues(expected, actual) {
907 return Fail(t, fmt.Sprintf("Should not be: %#v\n", actual), msgAndArgs...)
908 }
909
910 return true
911}
912
913// containsElement try loop over the list check if the list includes the element.
914// return (false, false) if impossible.

Callers 4

NotEqualValuesFunction · 0.92
NotEqualValuesfFunction · 0.70
NotEqualValuesMethod · 0.70

Calls 3

ObjectsAreEqualValuesFunction · 0.85
FailFunction · 0.70
HelperMethod · 0.65

Tested by 1