(c *C)
| 32 | } |
| 33 | |
| 34 | func (s *BinarySuite) TestWriteUint16(c *C) { |
| 35 | expected := bytes.NewBuffer(nil) |
| 36 | err := binary.Write(expected, binary.BigEndian, int16(42)) |
| 37 | c.Assert(err, IsNil) |
| 38 | |
| 39 | buf := bytes.NewBuffer(nil) |
| 40 | err = WriteUint16(buf, 42) |
| 41 | c.Assert(err, IsNil) |
| 42 | c.Assert(buf, DeepEquals, expected) |
| 43 | } |
| 44 | |
| 45 | func (s *BinarySuite) TestWriteVariableWidthInt(c *C) { |
| 46 | buf := bytes.NewBuffer(nil) |
nothing calls this directly
no test coverage detected