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

Method Len

cmp/report_text.go:168–180  ·  cmp/report_text.go::textList.Len
()

Source from the content-addressed store, hash-verified

166}
167
168func (s textList) Len() (n int) {
169 for i, r := range s {
170 n += len(r.Key)
171 if r.Key != "" {
172 n += len(": ")
173 }
174 n += r.Value.Len()
175 if i < len(s)-1 {
176 n += len(", ")
177 }
178 }
179 return n
180}
181
182func (s1 textList) Equal(s2 textNode) bool {
183 if s2, ok := s2.(textList); ok {

Callers

nothing calls this directly

Calls 1

LenMethod · 0.65

Tested by

no test coverage detected