(t *testing.T, want, got Args)
| 1654 | } |
| 1655 | |
| 1656 | func 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 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…