(c *gc.C)
| 160 | } |
| 161 | |
| 162 | func (s *ExprSuite) TestDivExpr(c *gc.C) { |
| 163 | expr := Div(Literal(1), Literal(2), Literal(3)) |
| 164 | |
| 165 | buf := &bytes.Buffer{} |
| 166 | |
| 167 | err := expr.SerializeSql(buf) |
| 168 | c.Assert(err, gc.IsNil) |
| 169 | |
| 170 | sql := buf.String() |
| 171 | c.Assert(sql, gc.Equals, "(1 / 2 / 3)") |
| 172 | } |
| 173 | |
| 174 | func (s *ExprSuite) TestBinaryExprNilLHS(c *gc.C) { |
| 175 | expr := Gt(nil, table1Col1) |
nothing calls this directly
no test coverage detected