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

Method IsZero

cmp/report_text.go:374–377  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

372}
373
374func (s diffStats) IsZero() bool {
375 s.Name = ""
376 return s == diffStats{}
377}
378
379func (s diffStats) NumDiff() int {
380 return s.NumRemoved + s.NumInserted + s.NumModified

Callers 5

formatDiffSliceMethod · 0.95
formatDiffListMethod · 0.95
AppendEllipsisMethod · 0.80
FormatValueMethod · 0.80
areNonZeroTimesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected