(t *testing.T)
| 84 | } |
| 85 | |
| 86 | func TestValidateWithDialect(t *testing.T) { |
| 87 | err := ValidateWithDialect("SELECT * FROM users WHERE id = 1", keywords.DialectMySQL) |
| 88 | if err != nil { |
| 89 | t.Fatalf("ValidateWithDialect(mysql) failed: %v", err) |
| 90 | } |
| 91 | |
| 92 | err = ValidateWithDialect("SELECT * FROM users WHERE id = 1", keywords.DialectPostgreSQL) |
| 93 | if err != nil { |
| 94 | t.Fatalf("ValidateWithDialect(postgresql) failed: %v", err) |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | func TestDefaultBehaviorUnchanged(t *testing.T) { |
| 99 | // Validate() without dialect should still work (backward compatibility) |
nothing calls this directly
no test coverage detected