(t *testing.T)
| 386 | } |
| 387 | |
| 388 | func TestSqlEqOrder(t *testing.T) { |
| 389 | b := Eq{"a": 1, "b": 2, "c": 3} |
| 390 | sql, args, err := b.ToSql() |
| 391 | assert.NoError(t, err) |
| 392 | |
| 393 | expectedSql := "a = ? AND b = ? AND c = ?" |
| 394 | assert.Equal(t, expectedSql, sql) |
| 395 | |
| 396 | expectedArgs := []interface{}{1, 2, 3} |
| 397 | assert.Equal(t, expectedArgs, args) |
| 398 | } |
| 399 | |
| 400 | func TestSqlLtOrder(t *testing.T) { |
| 401 | b := Lt{"a": 1, "b": 2, "c": 3} |
nothing calls this directly
no test coverage detected
searching dependent graphs…