(t *testing.T)
| 77 | } |
| 78 | |
| 79 | func TestParseBytesWithTokens(t *testing.T) { |
| 80 | result, tokens, err := parser.ParseBytesWithTokens([]byte("SELECT 1")) |
| 81 | if err != nil { |
| 82 | t.Fatalf("ParseBytesWithTokens failed: %v", err) |
| 83 | } |
| 84 | defer ast.ReleaseAST(result) |
| 85 | |
| 86 | if len(tokens) == 0 { |
| 87 | t.Fatal("expected tokens") |
| 88 | } |
| 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" |
nothing calls this directly
no test coverage detected