(t *testing.T)
| 374 | } |
| 375 | |
| 376 | func TestNotILikeToSql(t *testing.T) { |
| 377 | b := NotILike{"name": "sq%"} |
| 378 | sql, args, err := b.ToSql() |
| 379 | assert.NoError(t, err) |
| 380 | |
| 381 | expectedSql := "name NOT ILIKE ?" |
| 382 | assert.Equal(t, expectedSql, sql) |
| 383 | |
| 384 | expectedArgs := []interface{}{"sq%"} |
| 385 | assert.Equal(t, expectedArgs, args) |
| 386 | } |
| 387 | |
| 388 | func TestSqlEqOrder(t *testing.T) { |
| 389 | b := Eq{"a": 1, "b": 2, "c": 3} |
nothing calls this directly
no test coverage detected
searching dependent graphs…