diff options
author | Paulo Gomes <pjbgf@linux.com> | 2023-10-03 21:24:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-03 21:24:30 +0100 |
commit | ced662e9db6667069a5255446425ec40d388f7e1 (patch) | |
tree | 9841d964156160119c2455a461c4c0a392a1b43d /utils/merkletrie/internal/fsnoder/new_test.go | |
parent | 52c2972976737a00fce91d7deb1278a6a460cae6 (diff) | |
parent | c135ec2f6a34116f63ebbdfde25001b21d560f24 (diff) | |
download | go-git-ced662e9db6667069a5255446425ec40d388f7e1.tar.gz |
Merge pull request #855 from 0x34d/fuzzing
fuzzing : fuzz testing support for oss-fuzz integration
Diffstat (limited to 'utils/merkletrie/internal/fsnoder/new_test.go')
-rw-r--r-- | utils/merkletrie/internal/fsnoder/new_test.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/utils/merkletrie/internal/fsnoder/new_test.go b/utils/merkletrie/internal/fsnoder/new_test.go index ad069c7..52b3dc4 100644 --- a/utils/merkletrie/internal/fsnoder/new_test.go +++ b/utils/merkletrie/internal/fsnoder/new_test.go @@ -1,6 +1,8 @@ package fsnoder import ( + "testing" + "github.com/go-git/go-git/v5/utils/merkletrie/noder" . "gopkg.in/check.v1" @@ -352,3 +354,10 @@ func (s *FSNoderSuite) TestHashEqual(c *C) { c.Assert(HashEqual(t3, t1), Equals, false) c.Assert(HashEqual(t1, t3), Equals, false) } + +func FuzzDecodeFile(f *testing.F) { + + f.Fuzz(func(t *testing.T, input []byte) { + decodeFile(input) + }) +} |