MCPcopy
hub / github.com/google/go-cmp / wrapTrunkReference

Function wrapTrunkReference

cmp/report_references.go:94–100  ·  view source on GitHub ↗
(p value.Pointer, printAddress bool, s textNode)

Source from the content-addressed store, hash-verified

92 }
93}
94func wrapTrunkReference(p value.Pointer, printAddress bool, s textNode) textNode {
95 var prefix string
96 if printAddress {
97 prefix = formatPointer(p, true)
98 }
99 return &textWrap{Prefix: prefix, Value: s, Metadata: trunkReference{p}}
100}
101func makeLeafReference(p value.Pointer, printAddress bool) textNode {
102 out := &textWrap{Prefix: "(", Value: textEllipsis, Suffix: ")"}
103 var prefix string

Callers 1

FormatValueMethod · 0.85

Calls 1

formatPointerFunction · 0.85

Tested by

no test coverage detected