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

Method Len

cmp/report_text.go:103–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101}
102
103func (s *textWrap) Len() int {
104 return len(s.Prefix) + s.Value.Len() + len(s.Suffix)
105}
106func (s1 *textWrap) Equal(s2 textNode) bool {
107 if s2, ok := s2.(*textWrap); ok {
108 return s1.Prefix == s2.Prefix && s1.Value.Equal(s2.Value) && s1.Suffix == s2.Suffix

Callers

nothing calls this directly

Calls 1

LenMethod · 0.65

Tested by

no test coverage detected