(t *testing.T)
| 96 | } |
| 97 | |
| 98 | func TestRemoveWhere(t *testing.T) { |
| 99 | stmt := mustParse(t, "SELECT * FROM users WHERE active = true") |
| 100 | err := Apply(stmt, RemoveWhere()) |
| 101 | if err != nil { |
| 102 | t.Fatal(err) |
| 103 | } |
| 104 | out := format(stmt) |
| 105 | assertNotContains(t, out, "WHERE") |
| 106 | } |
| 107 | |
| 108 | func TestReplaceWhere(t *testing.T) { |
| 109 | stmt := mustParse(t, "SELECT * FROM users WHERE active = true") |
nothing calls this directly
no test coverage detected