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

Method Append

cmp/report_text.go:383–391  ·  view source on GitHub ↗
(ds diffStats)

Source from the content-addressed store, hash-verified

381}
382
383func (s diffStats) Append(ds diffStats) diffStats {
384 assert(s.Name == ds.Name)
385 s.NumIgnored += ds.NumIgnored
386 s.NumIdentical += ds.NumIdentical
387 s.NumRemoved += ds.NumRemoved
388 s.NumInserted += ds.NumInserted
389 s.NumModified += ds.NumModified
390 return s
391}
392
393// String prints a humanly-readable summary of coalesced records.
394//

Callers 4

formatDiffSliceMethod · 0.95
formatDiffListMethod · 0.95
AppendEllipsisMethod · 0.80

Calls 1

assertFunction · 0.85

Tested by

no test coverage detected