(t *testing.T)
| 28 | } |
| 29 | |
| 30 | func TestValidateSQLInternal_ValidGeneric(t *testing.T) { |
| 31 | data, err := validateSQLInternal("SELECT 1", "") |
| 32 | if err != nil { |
| 33 | t.Fatalf("unexpected error: %v", err) |
| 34 | } |
| 35 | if data["valid"] != true { |
| 36 | t.Errorf("expected valid=true, got %v", data["valid"]) |
| 37 | } |
| 38 | if _, ok := data["dialect"]; ok { |
| 39 | t.Error("generic validation should not include dialect key") |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | func TestValidateSQLInternal_InvalidGeneric(t *testing.T) { |
| 44 | data, err := validateSQLInternal("SELECT FROM", "") |
nothing calls this directly
no test coverage detected