MCPcopy Create free account
hub / github.com/cogentcore/core / TestDifferDump

Function TestDifferDump

texteditor/difflib/difflib_test.go:505–513  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

503}
504
505func TestDifferDump(t *testing.T) {
506 diff := NewDiffer()
507 out := diff.Dump("+",
508 []string{"foo", "bar", "baz", "quux", "qwerty"},
509 1, 3)
510 if reflect.DeepEqual(out, []string{"+ bar", "+ baz"}) != true {
511 t.Fatal("Differ Dump() failure:", out)
512 }
513}
514
515func TestDifferPlainReplace(t *testing.T) {
516 diff := NewDiffer()

Callers

nothing calls this directly

Calls 2

DumpMethod · 0.95
NewDifferFunction · 0.70

Tested by

no test coverage detected