BenchmarkScanner_CleanSQL_Raw benchmarks scanning raw SQL string
(b *testing.B)
| 57 | |
| 58 | // BenchmarkScanner_CleanSQL_Raw benchmarks scanning raw SQL string |
| 59 | func BenchmarkScanner_CleanSQL_Raw(b *testing.B) { |
| 60 | sql := "SELECT id, name, email FROM users WHERE active = true ORDER BY created_at DESC" |
| 61 | scanner := NewScanner() |
| 62 | |
| 63 | b.ReportAllocs() |
| 64 | b.ResetTimer() |
| 65 | for i := 0; i < b.N; i++ { |
| 66 | scanner.ScanSQL(sql) |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | // BenchmarkScanner_TautologyDetection benchmarks tautology pattern detection |
| 71 | func BenchmarkScanner_TautologyDetection(b *testing.B) { |
nothing calls this directly
no test coverage detected