(t *testing.T)
| 44 | } |
| 45 | |
| 46 | func TestDeleteBuilderPlaceholders(t *testing.T) { |
| 47 | b := Delete("test").Where("x = ? AND y = ?", 1, 2) |
| 48 | |
| 49 | sql, _, _ := b.PlaceholderFormat(Question).ToSql() |
| 50 | assert.Equal(t, "DELETE FROM test WHERE x = ? AND y = ?", sql) |
| 51 | |
| 52 | sql, _, _ = b.PlaceholderFormat(Dollar).ToSql() |
| 53 | assert.Equal(t, "DELETE FROM test WHERE x = $1 AND y = $2", sql) |
| 54 | } |
| 55 | |
| 56 | func TestDeleteBuilderRunners(t *testing.T) { |
| 57 | db := &DBStub{} |
nothing calls this directly
no test coverage detected
searching dependent graphs…