(t *testing.T)
| 144 | } |
| 145 | |
| 146 | func TestGtToSql(t *testing.T) { |
| 147 | b := Gt{"id": 1} |
| 148 | sql, args, err := b.ToSql() |
| 149 | assert.NoError(t, err) |
| 150 | |
| 151 | expectedSql := "id > ?" |
| 152 | assert.Equal(t, expectedSql, sql) |
| 153 | |
| 154 | expectedArgs := []interface{}{1} |
| 155 | assert.Equal(t, expectedArgs, args) |
| 156 | } |
| 157 | |
| 158 | func TestGtOrEqToSql(t *testing.T) { |
| 159 | b := GtOrEq{"id": 1} |
nothing calls this directly
no test coverage detected
searching dependent graphs…