(f *testing.F)
| 1652 | } |
| 1653 | |
| 1654 | func FuzzDecode(f *testing.F) { |
| 1655 | |
| 1656 | f.Fuzz(func(t *testing.T, input []byte) { |
| 1657 | |
| 1658 | obj := &SortReadObject{ |
| 1659 | t: plumbing.TreeObject, |
| 1660 | h: plumbing.ZeroHash, |
| 1661 | cont: input, |
| 1662 | sz: int64(len(input)), |
| 1663 | } |
| 1664 | |
| 1665 | newTree := &Tree{} |
| 1666 | newTree.Decode(obj) |
| 1667 | }) |
| 1668 | } |