(t *testing.T)
| 27 | } |
| 28 | |
| 29 | func TestEqToSql(t *testing.T) { |
| 30 | b := Eq{"id": 1} |
| 31 | sql, args, err := b.ToSql() |
| 32 | assert.NoError(t, err) |
| 33 | |
| 34 | expectedSql := "id = ?" |
| 35 | assert.Equal(t, expectedSql, sql) |
| 36 | |
| 37 | expectedArgs := []interface{}{1} |
| 38 | assert.Equal(t, expectedArgs, args) |
| 39 | } |
| 40 | |
| 41 | func TestEqEmptyToSql(t *testing.T) { |
| 42 | sql, args, err := Eq{}.ToSql() |
nothing calls this directly
no test coverage detected
searching dependent graphs…