MCPcopy Create free account
hub / github.com/go-git/go-git / FuzzDecode

Function FuzzDecode

plumbing/object/tree_test.go:1654–1668  ·  view source on GitHub ↗
(f *testing.F)

Source from the content-addressed store, hash-verified

1652}
1653
1654func 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}

Callers

nothing calls this directly

Calls 1

DecodeMethod · 0.95

Tested by

no test coverage detected