MCPcopy Create free account
hub / github.com/stretchr/testify / NotSamef

Method NotSamef

assert/assertion_forward.go:1374–1379  ·  view source on GitHub ↗

NotSamef asserts that two pointers do not reference the same object. a.NotSamef(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.

(expected interface{}, actual interface{}, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

1372// Both arguments must be pointer variables. Pointer variable sameness is
1373// determined based on the equality of both type and value.
1374func (a *Assertions) NotSamef(expected interface{}, actual interface{}, msg string, args ...interface{}) bool {
1375 if h, ok := a.t.(tHelper); ok {
1376 h.Helper()
1377 }
1378 return NotSamef(a.t, expected, actual, msg, args...)
1379}
1380
1381// NotSubset asserts that the specified list(array, slice...) or map does NOT
1382// contain all elements given in the specified subset list(array, slice...) or

Callers

nothing calls this directly

Calls 2

NotSamefFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected