NotSamef asserts that two pointers do not reference the same object. assert.NotSamef(t, ptr1, ptr2, "error message %s", "formatted") Both arguments must be pointer variables. Pointer variable sameness is determined based on the equality of both type and value.
(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{})
| 1673 | // Both arguments must be pointer variables. Pointer variable sameness is |
| 1674 | // determined based on the equality of both type and value. |
| 1675 | func NotSamef(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{}) { |
| 1676 | if h, ok := t.(tHelper); ok { |
| 1677 | h.Helper() |
| 1678 | } |
| 1679 | if assert.NotSamef(t, expected, actual, msg, args...) { |
| 1680 | return |
| 1681 | } |
| 1682 | t.FailNow() |
| 1683 | } |
| 1684 | |
| 1685 | // NotSubset asserts that the specified list(array, slice...) or map does NOT |
| 1686 | // contain all elements given in the specified subset list(array, slice...) or |