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

Method append

cmp/internal/diff/diff.go:377–388  ·  view source on GitHub ↗
(t EditType)

Source from the content-addressed store, hash-verified

375}
376
377func (p *path) append(t EditType) {
378 p.es = append(p.es, t)
379 switch t {
380 case Identity, Modified:
381 p.add(p.dir, p.dir)
382 case UniqueX:
383 p.add(p.dir, 0)
384 case UniqueY:
385 p.add(0, p.dir)
386 }
387 debug.Update()
388}
389
390type point struct{ X, Y int }
391

Callers 2

DifferenceFunction · 0.95
connectMethod · 0.95

Calls 2

addMethod · 0.80
UpdateMethod · 0.45

Tested by

no test coverage detected