(b *testing.B)
| 894 | } |
| 895 | |
| 896 | func BenchmarkDiffCleanupSemantic(b *testing.B) { |
| 897 | s1, s2 := speedtestTexts() |
| 898 | |
| 899 | dmp := New() |
| 900 | |
| 901 | diffs := dmp.DiffMain(s1, s2, false) |
| 902 | |
| 903 | b.ResetTimer() |
| 904 | |
| 905 | for i := 0; i < b.N; i++ { |
| 906 | dmp.DiffCleanupSemantic(diffs) |
| 907 | } |
| 908 | } |
| 909 | |
| 910 | func TestDiffCleanupEfficiency(t *testing.T) { |
| 911 | type TestCase struct { |
nothing calls this directly
no test coverage detected