(c *C)
| 21 | } |
| 22 | |
| 23 | func (s *BinarySuite) TestWriteUint32(c *C) { |
| 24 | expected := bytes.NewBuffer(nil) |
| 25 | err := binary.Write(expected, binary.BigEndian, int32(42)) |
| 26 | c.Assert(err, IsNil) |
| 27 | |
| 28 | buf := bytes.NewBuffer(nil) |
| 29 | err = WriteUint32(buf, 42) |
| 30 | c.Assert(err, IsNil) |
| 31 | c.Assert(buf, DeepEquals, expected) |
| 32 | } |
| 33 | |
| 34 | func (s *BinarySuite) TestWriteUint16(c *C) { |
| 35 | expected := bytes.NewBuffer(nil) |
nothing calls this directly
no test coverage detected