(c *C)
| 17 | var _ = Suite(&HexSuite{}) |
| 18 | |
| 19 | func (s *HexSuite) TestBasicStreamHex(c *C) { |
| 20 | w := bytes.NewBuffer(nil) |
| 21 | HexEncodeToWriter(w, []byte("foo")) |
| 22 | c.Assert(w.String(), Equals, "666f6f") |
| 23 | |
| 24 | w = bytes.NewBuffer(nil) |
| 25 | HexEncodeToWriter(w, []byte("")) |
| 26 | c.Assert(w.String(), Equals, "") |
| 27 | |
| 28 | w = bytes.NewBuffer(nil) |
| 29 | HexEncodeToWriter(w, []byte("\x00\x01")) |
| 30 | c.Assert(w.String(), Equals, "0001") |
| 31 | } |
nothing calls this directly
no test coverage detected