(c *C)
| 67 | } |
| 68 | |
| 69 | func (s *BinarySuite) TestReadUint32(c *C) { |
| 70 | buf := bytes.NewBuffer(nil) |
| 71 | err := binary.Write(buf, binary.BigEndian, uint32(42)) |
| 72 | c.Assert(err, IsNil) |
| 73 | |
| 74 | i32, err := ReadUint32(buf) |
| 75 | c.Assert(err, IsNil) |
| 76 | c.Assert(i32, Equals, uint32(42)) |
| 77 | } |
| 78 | |
| 79 | func (s *BinarySuite) TestReadUint16(c *C) { |
| 80 | buf := bytes.NewBuffer(nil) |
nothing calls this directly
no test coverage detected