(t *testing.T)
| 21 | ) |
| 22 | |
| 23 | func TestAddColumn(t *testing.T) { |
| 24 | stmt := mustParse(t, "SELECT id FROM users") |
| 25 | err := Apply(stmt, AddColumn(&ast.Identifier{Name: "email"})) |
| 26 | if err != nil { |
| 27 | t.Fatal(err) |
| 28 | } |
| 29 | out := format(stmt) |
| 30 | assertContains(t, out, "email") |
| 31 | assertContains(t, out, "id") |
| 32 | } |
| 33 | |
| 34 | func TestRemoveColumn(t *testing.T) { |
| 35 | stmt := mustParse(t, "SELECT id, name, email FROM users") |
nothing calls this directly
no test coverage detected