(c *C)
| 59 | } |
| 60 | |
| 61 | func (s *BinarySuite) TestReadVariableWidthIntShort(c *C) { |
| 62 | buf := bytes.NewBuffer([]byte{19}) |
| 63 | |
| 64 | i, err := ReadVariableWidthInt(buf) |
| 65 | c.Assert(err, IsNil) |
| 66 | c.Assert(i, Equals, int64(19)) |
| 67 | } |
| 68 | |
| 69 | func (s *BinarySuite) TestReadVariableWidthIntOverflow(c *C) { |
| 70 | // A continuation byte every iteration accumulates 7 bits and a +1 |
nothing calls this directly
no test coverage detected