(t *testing.T)
| 65 | } |
| 66 | |
| 67 | func TestRemoveColumn_Nonexistent(t *testing.T) { |
| 68 | stmt := mustParse(t, "SELECT id, name FROM users") |
| 69 | err := Apply(stmt, RemoveColumn("nonexistent")) |
| 70 | if err == nil { |
| 71 | t.Fatal("expected error for nonexistent column") |
| 72 | } |
| 73 | if err.Error() != `column "nonexistent" not found` { |
| 74 | t.Fatalf("unexpected error: %v", err) |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | func TestRemoveColumn_SingleColumn(t *testing.T) { |
| 79 | stmt := mustParse(t, "SELECT id, name FROM users") |
nothing calls this directly
no test coverage detected