(t *testing.T)
| 543 | } |
| 544 | |
| 545 | func TestDifferStructuredDump(t *testing.T) { |
| 546 | diff := NewDiffer() |
| 547 | out := diff.StructuredDump('+', |
| 548 | stringsToBytes("foo", "bar", "baz", "quux", "qwerty"), |
| 549 | 1, 3) |
| 550 | expected := []DiffLine{{'+', []byte("bar")}, |
| 551 | {'+', []byte("baz")}} |
| 552 | if !reflect.DeepEqual(out, expected) { |
| 553 | t.Fatal("Differ StructuredDump failure:", out) |
| 554 | } |
| 555 | } |
| 556 | |
| 557 | func TestDifferDump(t *testing.T) { |
| 558 | diff := NewDiffer() |
nothing calls this directly
no test coverage detected