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

Method Report

cmp/example_reporter_test.go:25–30  ·  view source on GitHub ↗
(rs cmp.Result)

Source from the content-addressed store, hash-verified

23}
24
25func (r *DiffReporter) Report(rs cmp.Result) {
26 if !rs.Equal() {
27 vx, vy := r.path.Last().Values()
28 r.diffs = append(r.diffs, fmt.Sprintf("%#v:\n\t-: %+v\n\t+: %+v\n", r.path, vx, vy))
29 }
30}
31
32func (r *DiffReporter) PopStep() {
33 r.path = r.path[:len(r.path)-1]

Callers

nothing calls this directly

Calls 3

LastMethod · 0.80
EqualMethod · 0.65
ValuesMethod · 0.65

Tested by

no test coverage detected