(b *testing.B)
| 870 | } |
| 871 | |
| 872 | func BenchmarkDiffCleanupSemantic(b *testing.B) { |
| 873 | s1, s2 := speedtestTexts() |
| 874 | |
| 875 | dmp := New() |
| 876 | |
| 877 | diffs := dmp.DiffMain(s1, s2, false) |
| 878 | |
| 879 | b.ResetTimer() |
| 880 | |
| 881 | for i := 0; i < b.N; i++ { |
| 882 | dmp.DiffCleanupSemantic(diffs) |
| 883 | } |
| 884 | } |
| 885 | |
| 886 | func TestDiffCleanupEfficiency(t *testing.T) { |
| 887 | type TestCase struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…