(c *gc.C)
| 457 | } |
| 458 | |
| 459 | func (s *ExprSuite) TestPlus(c *gc.C) { |
| 460 | clause := Plus(Literal(1), Literal(2)) |
| 461 | |
| 462 | buf := &bytes.Buffer{} |
| 463 | |
| 464 | err := clause.SerializeSql(buf) |
| 465 | c.Assert(err, gc.IsNil) |
| 466 | |
| 467 | sql := buf.String() |
| 468 | c.Assert(sql, gc.Equals, "1 + 2") |
| 469 | } |
| 470 | |
| 471 | func (s *ExprSuite) TestMinus(c *gc.C) { |
| 472 | clause := Minus(Literal(1), Literal(2)) |
nothing calls this directly
no test coverage detected