(t *testing.T)
| 636 | } |
| 637 | |
| 638 | func TestExtractMetadata_EmptyQuery(t *testing.T) { |
| 639 | metadata := ExtractMetadata(nil) |
| 640 | if metadata == nil { |
| 641 | t.Error("Expected non-nil Metadata for nil AST") |
| 642 | return |
| 643 | } |
| 644 | if len(metadata.Tables) > 0 || len(metadata.Columns) > 0 || len(metadata.Functions) > 0 { |
| 645 | t.Errorf("Expected empty metadata for nil AST, got: %+v", metadata) |
| 646 | } |
| 647 | } |
| 648 | |
| 649 | func TestExtractColumns_WithCaseExpression(t *testing.T) { |
| 650 | // Skipping - CASE expressions not fully supported in parser yet |
nothing calls this directly
no test coverage detected