(b *testing.B)
| 89 | } |
| 90 | |
| 91 | func BenchmarkValidate(b *testing.B) { |
| 92 | sql := "SELECT u.id, u.name, u.email FROM users u JOIN orders o ON u.id = o.user_id WHERE u.active = true AND o.total > 100 ORDER BY o.created_at DESC LIMIT 50" |
| 93 | b.ResetTimer() |
| 94 | for i := 0; i < b.N; i++ { |
| 95 | _ = parser.Validate(sql) |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | func BenchmarkParseForComparison(b *testing.B) { |
| 100 | sql := "SELECT u.id, u.name, u.email FROM users u JOIN orders o ON u.id = o.user_id WHERE u.active = true AND o.total > 100 ORDER BY o.created_at DESC LIMIT 50" |
nothing calls this directly
no test coverage detected