(c *C)
| 42 | } |
| 43 | |
| 44 | func (s *BinarySuite) TestReadUntilFromBufioReader(c *C) { |
| 45 | buf := bufio.NewReader(bytes.NewBuffer([]byte("foo bar"))) |
| 46 | |
| 47 | b, err := ReadUntilFromBufioReader(buf, ' ') |
| 48 | c.Assert(err, IsNil) |
| 49 | c.Assert(b, HasLen, 3) |
| 50 | c.Assert(string(b), Equals, "foo") |
| 51 | } |
| 52 | |
| 53 | func (s *BinarySuite) TestReadVariableWidthInt(c *C) { |
| 54 | buf := bytes.NewBuffer([]byte{129, 110}) |
nothing calls this directly
no test coverage detected