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

Function updateReferencePrefix

cmp/report_references.go:258–264  ·  view source on GitHub ↗
(prefix, ref string)

Source from the content-addressed store, hash-verified

256}
257
258func updateReferencePrefix(prefix, ref string) string {
259 if prefix == "" {
260 return pointerDelimPrefix + ref + pointerDelimSuffix
261 }
262 suffix := strings.TrimPrefix(prefix, pointerDelimPrefix)
263 return pointerDelimPrefix + ref + ": " + suffix
264}

Callers 1

resolveReferencesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected