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

Method Same

internal/testify/assert/assertion_forward.go:1487–1492  ·  view source on GitHub ↗

Same asserts that two pointers reference the same object. a.Same(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

1485// Both arguments must be pointer variables. Pointer variable sameness is
1486// determined based on the equality of both type and value.
1487func (a *Assertions) Same(expected interface{}, actual interface{}, msgAndArgs ...interface{}) bool {
1488 if h, ok := a.t.(tHelper); ok {
1489 h.Helper()
1490 }
1491 return Same(a.t, expected, actual, msgAndArgs...)
1492}
1493
1494// Samef asserts that two pointers reference the same object.
1495//

Callers

nothing calls this directly

Calls 2

SameFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected