(c *C)
| 93 | } |
| 94 | |
| 95 | func (s *BinarySuite) TestReadUint32(c *C) { |
| 96 | buf := bytes.NewBuffer(nil) |
| 97 | err := binary.Write(buf, binary.BigEndian, uint32(42)) |
| 98 | c.Assert(err, IsNil) |
| 99 | |
| 100 | i32, err := ReadUint32(buf) |
| 101 | c.Assert(err, IsNil) |
| 102 | c.Assert(i32, Equals, uint32(42)) |
| 103 | } |
| 104 | |
| 105 | func (s *BinarySuite) TestReadUint16(c *C) { |
| 106 | buf := bytes.NewBuffer(nil) |
nothing calls this directly
no test coverage detected