MCPcopy Index your code
hub / github.com/maruel/panicparse / zapPointersInArgs

Function zapPointersInArgs

stack/source_test.go:1656–1670  ·  view source on GitHub ↗
(t *testing.T, want, got Args)

Source from the content-addressed store, hash-verified

1654}
1655
1656func zapPointersInArgs(t *testing.T, want, got Args) (ptrs []string) {
1657 for j := range got.Values {
1658 if j >= len(want.Values) {
1659 break
1660 }
1661 if want.Values[j].IsAggregate && got.Values[j].IsAggregate {
1662 ptrs = append(ptrs, zapPointersInArgs(t, want.Values[j].Fields, got.Values[j].Fields)...)
1663 } else if want.Values[j].IsPtr && got.Values[j].IsPtr {
1664 // Record the existing pointer value and then replace.
1665 ptrs = append(ptrs, fmt.Sprintf("0x%x", got.Values[j].Value))
1666 got.Values[j].Value = want.Values[j].Value
1667 }
1668 }
1669 return ptrs
1670}

Callers 1

zapPointersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…