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

Method NotSame

internal/testify/require/require_forward.go:1311–1316  ·  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

1309// Both arguments must be pointer variables. Pointer variable sameness is
1310// determined based on the equality of both type and value.
1311func (a *Assertions) NotSame(expected interface{}, actual interface{}, msgAndArgs ...interface{}) {
1312 if h, ok := a.t.(tHelper); ok {
1313 h.Helper()
1314 }
1315 NotSame(a.t, expected, actual, msgAndArgs...)
1316}
1317
1318// NotSamef asserts that two pointers do not reference the same object.
1319//

Callers

nothing calls this directly

Calls 2

NotSameFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected