NotSame asserts that two pointers do not reference the same object. a.NotSame(ptr1, ptr2) Both arguments must be pointer variables. Pointer variable sameness is determined based on the equality of both type and value.
(expected interface{}, actual interface{}, msgAndArgs ...interface{})
| 1307 | // Both arguments must be pointer variables. Pointer variable sameness is |
| 1308 | // determined based on the equality of both type and value. |
| 1309 | func (a *Assertions) NotSame(expected interface{}, actual interface{}, msgAndArgs ...interface{}) bool { |
| 1310 | if h, ok := a.t.(tHelper); ok { |
| 1311 | h.Helper() |
| 1312 | } |
| 1313 | return NotSame(a.t, expected, actual, msgAndArgs...) |
| 1314 | } |
| 1315 | |
| 1316 | // NotSamef asserts that two pointers do not reference the same object. |
| 1317 | // |