(t *testing.T)
| 639 | } |
| 640 | |
| 641 | func TestDifferQFormat(t *testing.T) { |
| 642 | diff := NewDiffer() |
| 643 | aStr := []byte("\tfoo2bar\n") |
| 644 | aTag := []byte(" ^ ^") |
| 645 | bStr := []byte("\tfoo3baz\n") |
| 646 | bTag := []byte(" ^ ^") |
| 647 | out := diff.QFormat(aStr, bStr, aTag, bTag) |
| 648 | out2 := bytesToStrings(out...) |
| 649 | if reflect.DeepEqual(out2, []string{ |
| 650 | "- \tfoo2bar\n", |
| 651 | "? \t ^ ^\n", |
| 652 | "+ \tfoo3baz\n", |
| 653 | "? \t ^ ^\n", |
| 654 | }) != true { |
| 655 | t.Fatal("Differ QFormat() failure:", out2) |
| 656 | } |
| 657 | } |
| 658 | |
| 659 | func TestGetUnifiedDiffString(t *testing.T) { |
| 660 | A := []byte("one\ntwo\nthree\nfour\nfive\nsix\nseven\neight\nnine\nten\n") |
nothing calls this directly
no test coverage detected