(b *testing.B)
| 202 | } |
| 203 | |
| 204 | func BenchmarkSuggestKeywordWithCache(b *testing.B) { |
| 205 | ClearSuggestionCache() |
| 206 | ResetSuggestionCacheStats() |
| 207 | |
| 208 | // First call to populate cache |
| 209 | SuggestKeyword("SELCT") |
| 210 | |
| 211 | b.ReportAllocs() |
| 212 | b.ResetTimer() |
| 213 | for i := 0; i < b.N; i++ { |
| 214 | // This should be a cache hit |
| 215 | _ = SuggestKeyword("SELCT") |
| 216 | } |
| 217 | } |
| 218 | |
| 219 | func BenchmarkSuggestKeywordCacheMiss(b *testing.B) { |
| 220 | ClearSuggestionCache() |
nothing calls this directly
no test coverage detected