(t *testing.T)
| 96 | } |
| 97 | |
| 98 | func TestNotEqInEmptyToSql(t *testing.T) { |
| 99 | b := NotEq{"id": []int{}} |
| 100 | sql, args, err := b.ToSql() |
| 101 | assert.NoError(t, err) |
| 102 | |
| 103 | expectedSql := "(1=1)" |
| 104 | assert.Equal(t, expectedSql, sql) |
| 105 | |
| 106 | expectedArgs := []interface{}{} |
| 107 | assert.Equal(t, expectedArgs, args) |
| 108 | } |
| 109 | |
| 110 | func TestEqBytesToSql(t *testing.T) { |
| 111 | b := Eq{"id": []byte("test")} |
nothing calls this directly
no test coverage detected
searching dependent graphs…