(t *testing.T)
| 72 | } |
| 73 | |
| 74 | func TestEqNotInToSql(t *testing.T) { |
| 75 | b := NotEq{"id": []int{1, 2, 3}} |
| 76 | sql, args, err := b.ToSql() |
| 77 | assert.NoError(t, err) |
| 78 | |
| 79 | expectedSql := "id NOT IN (?,?,?)" |
| 80 | assert.Equal(t, expectedSql, sql) |
| 81 | |
| 82 | expectedArgs := []interface{}{1, 2, 3} |
| 83 | assert.Equal(t, expectedArgs, args) |
| 84 | } |
| 85 | |
| 86 | func TestEqInEmptyToSql(t *testing.T) { |
| 87 | b := Eq{"id": []int{}} |
nothing calls this directly
no test coverage detected
searching dependent graphs…