(t *testing.T)
| 57 | } |
| 58 | |
| 59 | func TestUpdateBuilderPlaceholders(t *testing.T) { |
| 60 | b := Update("test").SetMap(Eq{"x": 1, "y": 2}) |
| 61 | |
| 62 | sql, _, _ := b.PlaceholderFormat(Question).ToSql() |
| 63 | assert.Equal(t, "UPDATE test SET x = ?, y = ?", sql) |
| 64 | |
| 65 | sql, _, _ = b.PlaceholderFormat(Dollar).ToSql() |
| 66 | assert.Equal(t, "UPDATE test SET x = $1, y = $2", sql) |
| 67 | } |
| 68 | |
| 69 | func TestUpdateBuilderRunners(t *testing.T) { |
| 70 | db := &DBStub{} |
nothing calls this directly
no test coverage detected
searching dependent graphs…