(t *testing.T)
| 12 | ) |
| 13 | |
| 14 | func TestMergeTwoHash(t *testing.T) { |
| 15 | Convey("Concatenate of two hash should be equal to the result", t, func() { |
| 16 | h0 := &hash.Hash{} |
| 17 | rand.Read(h0[:]) |
| 18 | h1 := &hash.Hash{} |
| 19 | rand.Read(h1[:]) |
| 20 | wanted := mergeHash(h0, h1) |
| 21 | |
| 22 | So(bytes.Compare(MergeTwoHash(h0, h1).CloneBytes(), wanted[:]), ShouldEqual, 0) |
| 23 | }) |
| 24 | } |
| 25 | |
| 26 | func TestNewMerkle(t *testing.T) { |
| 27 | tests := [][]*hash.Hash{ |
nothing calls this directly
no test coverage detected