(t *testing.T)
| 60 | } |
| 61 | |
| 62 | func TestRemoveSetClause_RemovesColumn(t *testing.T) { |
| 63 | stmt := mustParse(t, "UPDATE users SET name = 'alice', status = 'active', age = 30") |
| 64 | |
| 65 | err := Apply(stmt, RemoveSetClause("status")) |
| 66 | if err != nil { |
| 67 | t.Fatalf("RemoveSetClause: %v", err) |
| 68 | } |
| 69 | |
| 70 | out := format(stmt) |
| 71 | assertNotContains(t, out, "status") |
| 72 | assertContains(t, out, "name") |
| 73 | assertContains(t, out, "age") |
| 74 | } |
| 75 | |
| 76 | func TestRemoveSetClause_NonExistentColumn_NoError(t *testing.T) { |
| 77 | stmt := mustParse(t, "UPDATE users SET name = 'alice'") |
nothing calls this directly
no test coverage detected