const input … type DiffReporter … func (r *DiffReporter) PushStep(ps cmp.PathStep) { … } func (r *DiffReporter) Report(rs cmp.Result) { … } func (r *DiffReporter) PopStep() { … } func (r *DiffReporter) String() string { … } func TestStringChanges(t *testing.T) { … } func TestBoolChanges(t *testing.T) { … } func TestNumberChanges(t *testing.T) { … } // v is a set of matches. check that substituting any repl never // creates more than 1 unmarshaling error func allDeltas(t *testing.T, v [][]int, repls ...string) { … } func tryChange(start, end int, repl string) error { … }