(t *testing.T)
| 158 | } |
| 159 | |
| 160 | func TestAddSetClause_WithNumericValue(t *testing.T) { |
| 161 | stmt := mustParse(t, "UPDATE counters SET total = 0") |
| 162 | |
| 163 | err := Apply(stmt, AddSetClause("total", "42")) |
| 164 | if err != nil { |
| 165 | t.Fatalf("AddSetClause with numeric: %v", err) |
| 166 | } |
| 167 | |
| 168 | out := format(stmt) |
| 169 | assertContains(t, out, "42") |
| 170 | } |
nothing calls this directly
no test coverage detected