(b *testing.B)
| 203 | } |
| 204 | |
| 205 | func BenchmarkSuggestKeyword(b *testing.B) { |
| 206 | inputs := []string{"FORM", "SELCT", "WAHER", "JION", "UPDTE"} |
| 207 | |
| 208 | b.ResetTimer() |
| 209 | for i := 0; i < b.N; i++ { |
| 210 | input := inputs[i%len(inputs)] |
| 211 | _ = SuggestKeyword(input) |
| 212 | } |
| 213 | } |
| 214 | |
| 215 | func BenchmarkLevenshteinDistance(b *testing.B) { |
| 216 | b.ResetTimer() |
nothing calls this directly
no test coverage detected