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{})
| 661 | // Both arguments must be pointer variables. Pointer variable sameness is |
| 662 | // determined based on the equality of both type and value. |
| 663 | func NotSamef(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{}) bool { |
| 664 | if h, ok := t.(tHelper); ok { |
| 665 | h.Helper() |
| 666 | } |
| 667 | return NotSame(t, expected, actual, append([]interface{}{msg}, args...)...) |
| 668 | } |
| 669 | |
| 670 | // NotSubsetf asserts that the specified list(array, slice...) or map does NOT |
| 671 | // contain all elements given in the specified subset list(array, slice...) or |