(t *testing.T)
| 84 | } |
| 85 | |
| 86 | func TestEqInEmptyToSql(t *testing.T) { |
| 87 | b := Eq{"id": []int{}} |
| 88 | sql, args, err := b.ToSql() |
| 89 | assert.NoError(t, err) |
| 90 | |
| 91 | expectedSql := "(1=0)" |
| 92 | assert.Equal(t, expectedSql, sql) |
| 93 | |
| 94 | expectedArgs := []interface{}{} |
| 95 | assert.Equal(t, expectedArgs, args) |
| 96 | } |
| 97 | |
| 98 | func TestNotEqInEmptyToSql(t *testing.T) { |
| 99 | b := NotEq{"id": []int{}} |
nothing calls this directly
no test coverage detected
searching dependent graphs…