(c *C)
| 33 | } |
| 34 | |
| 35 | func (s *BinarySuite) TestReadUntil(c *C) { |
| 36 | buf := bytes.NewBuffer([]byte("foo bar")) |
| 37 | |
| 38 | b, err := ReadUntil(buf, ' ') |
| 39 | c.Assert(err, IsNil) |
| 40 | c.Assert(b, HasLen, 3) |
| 41 | c.Assert(string(b), Equals, "foo") |
| 42 | } |
| 43 | |
| 44 | func (s *BinarySuite) TestReadUntilFromBufioReader(c *C) { |
| 45 | buf := bufio.NewReader(bytes.NewBuffer([]byte("foo bar"))) |
nothing calls this directly
no test coverage detected