DiffReporter is a simple custom reporter that only records differences detected during comparison.
| 14 | // DiffReporter is a simple custom reporter that only records differences |
| 15 | // detected during comparison. |
| 16 | type DiffReporter struct { |
| 17 | path cmp.Path |
| 18 | diffs []string |
| 19 | } |
| 20 | |
| 21 | func (r *DiffReporter) PushStep(ps cmp.PathStep) { |
| 22 | r.path = append(r.path, ps) |
nothing calls this directly
no outgoing calls
no test coverage detected