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{})
| 863 | // |
| 864 | // assert.NotEqualValues(t, obj1, obj2) |
| 865 | func 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. |
searching dependent graphs…