(c *gc.C)
| 181 | } |
| 182 | |
| 183 | func (s *ExprSuite) TestNegateExpr(c *gc.C) { |
| 184 | expr := Not(EqL(table1Col1, 123)) |
| 185 | |
| 186 | buf := &bytes.Buffer{} |
| 187 | |
| 188 | err := expr.SerializeSql(buf) |
| 189 | c.Assert(err, gc.IsNil) |
| 190 | |
| 191 | sql := buf.String() |
| 192 | c.Assert(sql, gc.Equals, "NOT (`table1`.`col1`=123)") |
| 193 | } |
| 194 | |
| 195 | func (s *ExprSuite) TestBinaryExprNilRHS(c *gc.C) { |
| 196 | expr := Lt(table1Col1, nil) |
nothing calls this directly
no test coverage detected