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

Method formatCompactTo

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

formatCompactTo formats the contents of the tree as a single-line string to the provided buffer. Any nested textRecord.Diff and textRecord.Comment fields are ignored. However, not all nodes in the tree should be collapsed as a single-line. If a node can be collapsed as a single-line, it is replaced

([]byte, diffMode)

Source from the content-addressed store, hash-verified

85 //
86 // This does not mutate the receiver.
87 formatCompactTo([]byte, diffMode) ([]byte, textNode)
88 // formatExpandedTo formats the contents of the tree as a multi-line string
89 // to the provided buffer. In order for column alignment to operate well,
90 // formatCompactTo must be called before calling formatExpandedTo.

Callers 2

formatCompactToMethod · 0.65
formatCompactToMethod · 0.65

Implementers 1

textWrapcmp/report_text.go

Calls

no outgoing calls

Tested by

no test coverage detected