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

Method NotSamef

internal/testify/assert/assertion_forward.go:1322–1327  ·  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

1320// Both arguments must be pointer variables. Pointer variable sameness is
1321// determined based on the equality of both type and value.
1322func (a *Assertions) NotSamef(expected interface{}, actual interface{}, msg string, args ...interface{}) bool {
1323 if h, ok := a.t.(tHelper); ok {
1324 h.Helper()
1325 }
1326 return NotSamef(a.t, expected, actual, msg, args...)
1327}
1328
1329// NotSubset asserts that the specified list(array, slice...) or map does NOT
1330// contain all elements given in the specified subset list(array, slice...) or

Callers

nothing calls this directly

Calls 2

NotSamefFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected