MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / BenchmarkSuggestKeyword

Function BenchmarkSuggestKeyword

pkg/errors/hints_test.go:205–213  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

203}
204
205func 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
215func BenchmarkLevenshteinDistance(b *testing.B) {
216 b.ResetTimer()

Callers

nothing calls this directly

Calls 1

SuggestKeywordFunction · 0.85

Tested by

no test coverage detected