(c *gc.C)
| 24 | } |
| 25 | |
| 26 | func (s *TableSuite) TestCValidLookup(c *gc.C) { |
| 27 | col := table1.C("col1") |
| 28 | |
| 29 | buf := &bytes.Buffer{} |
| 30 | |
| 31 | err := col.SerializeSql(buf) |
| 32 | c.Assert(err, gc.IsNil) |
| 33 | |
| 34 | sql := buf.String() |
| 35 | c.Assert(sql, gc.Equals, "`table1`.`col1`") |
| 36 | } |
| 37 | |
| 38 | func (s *TableSuite) TestCInvalidLookup(c *gc.C) { |
| 39 | col := table1.C("foo") |
nothing calls this directly
no test coverage detected