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

Method Len

cmp/report_text.go:68–68  ·  cmp/report_text.go::textNode.Len

Len reports the length in bytes of a single-line version of the tree. Nested textRecord.Diff and textRecord.Comment fields are ignored.

()

Source from the content-addressed store, hash-verified

66 // Len reports the length in bytes of a single-line version of the tree.
67 // Nested textRecord.Diff and textRecord.Comment fields are ignored.
68 Len() int
69 // Equal reports whether the two trees are structurally identical.
70 // Nested textRecord.Diff and textRecord.Comment fields are compared.
71 Equal(textNode) bool

Callers 15

CanFormatDiffSliceMethod · 0.65
FormatDiffSliceMethod · 0.65
formatDiffSliceMethod · 0.65
compareSliceMethod · 0.65
FormatDiffMethod · 0.65
LenMethod · 0.65
LenMethod · 0.65
ExampleOption_equalEmptyFunction · 0.65
FormatValueMethod · 0.65
filterMethod · 0.65
sortMethod · 0.65
checkSortMethod · 0.65

Implementers 1

textWrapcmp/report_text.go

Calls

no outgoing calls

Tested by 1

ExampleOption_equalEmptyFunction · 0.52