(t *testing.T)
| 48 | } |
| 49 | |
| 50 | func TestUpdateBuilderMustSql(t *testing.T) { |
| 51 | defer func() { |
| 52 | if r := recover(); r == nil { |
| 53 | t.Errorf("TestUpdateBuilderMustSql should have panicked!") |
| 54 | } |
| 55 | }() |
| 56 | Update("").MustSql() |
| 57 | } |
| 58 | |
| 59 | func TestUpdateBuilderPlaceholders(t *testing.T) { |
| 60 | b := Update("test").SetMap(Eq{"x": 1, "y": 2}) |