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

Struct DiffReporter

cmp/example_reporter_test.go:16–19  ·  view source on GitHub ↗

DiffReporter is a simple custom reporter that only records differences detected during comparison.

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected