(t *testing.T)
| 60 | } |
| 61 | |
| 62 | func TestNotEqToSql(t *testing.T) { |
| 63 | b := NotEq{"id": 1} |
| 64 | sql, args, err := b.ToSql() |
| 65 | assert.NoError(t, err) |
| 66 | |
| 67 | expectedSql := "id <> ?" |
| 68 | assert.Equal(t, expectedSql, sql) |
| 69 | |
| 70 | expectedArgs := []interface{}{1} |
| 71 | assert.Equal(t, expectedArgs, args) |
| 72 | } |
| 73 | |
| 74 | func TestEqNotInToSql(t *testing.T) { |
| 75 | b := NotEq{"id": []int{1, 2, 3}} |
nothing calls this directly
no test coverage detected
searching dependent graphs…