(c *gc.C)
| 301 | } |
| 302 | |
| 303 | func (s *ExprSuite) TestInExpr(c *gc.C) { |
| 304 | values := []int32{1, 2, 3} |
| 305 | expr := In(table1Col1, values) |
| 306 | |
| 307 | buf := &bytes.Buffer{} |
| 308 | |
| 309 | err := expr.SerializeSql(buf) |
| 310 | c.Assert(err, gc.IsNil) |
| 311 | |
| 312 | sql := buf.String() |
| 313 | c.Assert(sql, gc.Equals, "`table1`.`col1` IN (1,2,3)") |
| 314 | } |
| 315 | |
| 316 | func (s *ExprSuite) TestInExprEmptyList(c *gc.C) { |
| 317 | values := []int32{} |
nothing calls this directly
no test coverage detected