(c *C)
| 77 | } |
| 78 | |
| 79 | func (s *BinarySuite) TestReadUint16(c *C) { |
| 80 | buf := bytes.NewBuffer(nil) |
| 81 | err := binary.Write(buf, binary.BigEndian, uint16(42)) |
| 82 | c.Assert(err, IsNil) |
| 83 | |
| 84 | i32, err := ReadUint16(buf) |
| 85 | c.Assert(err, IsNil) |
| 86 | c.Assert(i32, Equals, uint16(42)) |
| 87 | } |
| 88 | |
| 89 | func (s *BinarySuite) TestReadHash(c *C) { |
| 90 | expected := plumbing.NewHash("43aec75c611f22c73b27ece2841e6ccca592f285") |
nothing calls this directly
no test coverage detected