(c *C)
| 43 | } |
| 44 | |
| 45 | func (s *BinarySuite) TestWriteVariableWidthInt(c *C) { |
| 46 | buf := bytes.NewBuffer(nil) |
| 47 | |
| 48 | err := WriteVariableWidthInt(buf, 366) |
| 49 | c.Assert(err, IsNil) |
| 50 | c.Assert(buf.Bytes(), DeepEquals, []byte{129, 110}) |
| 51 | } |
| 52 | |
| 53 | func (s *BinarySuite) TestWriteVariableWidthIntShort(c *C) { |
| 54 | buf := bytes.NewBuffer(nil) |
nothing calls this directly
no test coverage detected