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

Method NotSame

internal/testify/assert/assertion_forward.go:1309–1314  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1307// Both arguments must be pointer variables. Pointer variable sameness is
1308// determined based on the equality of both type and value.
1309func (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//

Callers

nothing calls this directly

Calls 2

NotSameFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected