(c *gc.C)
| 433 | } |
| 434 | |
| 435 | func (s *ExprSuite) TestBitwiseAnd(c *gc.C) { |
| 436 | clause := BitAnd(Literal(1), Literal(2)) |
| 437 | |
| 438 | buf := &bytes.Buffer{} |
| 439 | |
| 440 | err := clause.SerializeSql(buf) |
| 441 | c.Assert(err, gc.IsNil) |
| 442 | |
| 443 | sql := buf.String() |
| 444 | c.Assert(sql, gc.Equals, "1 & 2") |
| 445 | } |
| 446 | |
| 447 | func (s *ExprSuite) TestBitwiseXor(c *gc.C) { |
| 448 | clause := BitXor(Literal(1), Literal(2)) |
nothing calls this directly
no test coverage detected