(t *testing.T)
| 231 | } |
| 232 | |
| 233 | func TestTemplateDelete(t *testing.T) { |
| 234 | b := sqlbuilder.WithTemplate(template) |
| 235 | assert := assert.New(t) |
| 236 | |
| 237 | assert.Equal( |
| 238 | `DELETE FROM "artist" WHERE (name = $1)`, |
| 239 | b.DeleteFrom("artist").Where("name = ?", "Chavela Vargas").String(), |
| 240 | ) |
| 241 | |
| 242 | assert.Equal( |
| 243 | `DELETE FROM "artist" WHERE (id > 5)`, |
| 244 | b.DeleteFrom("artist").Where("id > 5").String(), |
| 245 | ) |
| 246 | } |
nothing calls this directly
no test coverage detected