(b *testing.B)
| 83 | } |
| 84 | |
| 85 | func BenchmarkDiffCommonPrefix(b *testing.B) { |
| 86 | s := "ABCDEFGHIJKLMNOPQRSTUVWXYZÅÄÖ" |
| 87 | |
| 88 | dmp := New() |
| 89 | |
| 90 | for i := 0; i < b.N; i++ { |
| 91 | dmp.DiffCommonPrefix(s, s) |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | func TestCommonPrefixLength(t *testing.T) { |
| 96 | type TestCase struct { |
nothing calls this directly
no test coverage detected