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

Function NotSamef

assert/assertion_format.go:689–694  ·  view source on GitHub ↗

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{})

Source from the content-addressed store, hash-verified

687// Both arguments must be pointer variables. Pointer variable sameness is
688// determined based on the equality of both type and value.
689func NotSamef(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{}) bool {
690 if h, ok := t.(tHelper); ok {
691 h.Helper()
692 }
693 return NotSame(t, expected, actual, append([]interface{}{msg}, args...)...)
694}
695
696// NotSubsetf asserts that the specified list(array, slice...) or map does NOT
697// contain all elements given in the specified subset list(array, slice...) or

Callers 2

NotSamefFunction · 0.92
NotSamefMethod · 0.70

Calls 2

NotSameFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected