MCPcopy Create free account
hub / github.com/expr-lang/expr / NotSame

Function NotSame

internal/testify/require/require.go:1659–1667  ·  view source on GitHub ↗

NotSame asserts that two pointers do not reference the same object. assert.NotSame(t, ptr1, ptr2) 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{}, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

1657// Both arguments must be pointer variables. Pointer variable sameness is
1658// determined based on the equality of both type and value.
1659func NotSame(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{}) {
1660 if h, ok := t.(tHelper); ok {
1661 h.Helper()
1662 }
1663 if assert.NotSame(t, expected, actual, msgAndArgs...) {
1664 return
1665 }
1666 t.FailNow()
1667}
1668
1669// NotSamef asserts that two pointers do not reference the same object.
1670//

Callers 1

NotSameMethod · 0.70

Calls 3

NotSameFunction · 0.92
FailNowMethod · 0.65
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…