(b *testing.B)
| 392 | } |
| 393 | |
| 394 | func BenchmarkPatchFromText(b *testing.B) { |
| 395 | s1, s2 := speedtestTexts() |
| 396 | |
| 397 | dmp := New() |
| 398 | text := dmp.PatchToText(dmp.PatchMake(s1, s2)) |
| 399 | |
| 400 | b.ResetTimer() |
| 401 | |
| 402 | for i := 0; i < b.N; i++ { |
| 403 | _, _ = dmp.PatchFromText(text) |
| 404 | } |
| 405 | } |
| 406 | |
| 407 | func BenchmarkPatchApply(b *testing.B) { |
| 408 | s1, s2 := speedtestTexts() |
nothing calls this directly
no test coverage detected