MCPcopy Create free account
hub / github.com/google/go-cmp / String

Method String

cmp/report_text.go:75–75  ·  view source on GitHub ↗

String returns the string representation of the text tree. It is not guaranteed that len(x.String()) == x.Len(), nor that x.String() == y.String() implies that x.Equal(y).

()

Source from the content-addressed store, hash-verified

73 // It is not guaranteed that len(x.String()) == x.Len(),
74 // nor that x.String() == y.String() implies that x.Equal(y).
75 String() string
76
77 // formatCompactTo formats the contents of the tree as a single-line string
78 // to the provided buffer. Any nested textRecord.Diff and textRecord.Comment

Callers 2

StringMethod · 0.65
formatExpandedToMethod · 0.65

Implementers 1

textWrapcmp/report_text.go

Calls

no outgoing calls

Tested by

no test coverage detected