(b *testing.B)
| 491 | } |
| 492 | |
| 493 | func BenchmarkDiffer(b *testing.B) { |
| 494 | A, B := prepareFilesToDiff(b.N, 0) |
| 495 | fmt.Printf("\nDiff length:") |
| 496 | b.ResetTimer() |
| 497 | differ := NewDiffer() |
| 498 | for i := range A { |
| 499 | var x [][]byte |
| 500 | for n := 0; n < 5; n++ { |
| 501 | x, _ = differ.Compare(A[i], B[i]) |
| 502 | } |
| 503 | fmt.Printf(" %v", len(x)) |
| 504 | } |
| 505 | fmt.Printf("\n") |
| 506 | } |
| 507 | |
| 508 | func BenchmarkMatcher(b *testing.B) { |
| 509 | As, Bs := prepareFilesToDiff(b.N, 0) |
nothing calls this directly
no test coverage detected