(t *testing.T)
| 86 | } |
| 87 | |
| 88 | func TestAddWhere_DeleteStatement(t *testing.T) { |
| 89 | stmt := mustParse(t, "DELETE FROM users") |
| 90 | err := Apply(stmt, AddWhereFromSQL("id = 1")) |
| 91 | if err != nil { |
| 92 | t.Fatal(err) |
| 93 | } |
| 94 | out := format(stmt) |
| 95 | assertContains(t, out, "WHERE") |
| 96 | } |
| 97 | |
| 98 | func TestRemoveWhere(t *testing.T) { |
| 99 | stmt := mustParse(t, "SELECT * FROM users WHERE active = true") |
nothing calls this directly
no test coverage detected