aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/transport/common_test.go
diff options
context:
space:
mode:
authorArjun Singh <ajsinghyadav00@gmail.com>2023-10-01 14:53:58 +0530
committerArjun Singh <ajsinghyadav00@gmail.com>2023-10-02 07:22:29 +0530
commitc135ec2f6a34116f63ebbdfde25001b21d560f24 (patch)
treeac426727bc440f94b270fdd6a3c3bd706a413457 /plumbing/transport/common_test.go
parent85f63b17e011872817117a38f92f08a1e01297bb (diff)
downloadgo-git-c135ec2f6a34116f63ebbdfde25001b21d560f24.tar.gz
fuzzing : fuzz testing support for oss-fuzz integration
Signed-off-by: Arjun Singh <ajsinghyadav00@gmail.com>
Diffstat (limited to 'plumbing/transport/common_test.go')
-rw-r--r--plumbing/transport/common_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/plumbing/transport/common_test.go b/plumbing/transport/common_test.go
index d9f12ab..3efc555 100644
--- a/plumbing/transport/common_test.go
+++ b/plumbing/transport/common_test.go
@@ -210,3 +210,10 @@ func (s *SuiteCommon) TestNewEndpointIPv6(c *C) {
c.Assert(e.Host, Equals, "[::1]")
c.Assert(e.String(), Equals, "http://[::1]:8080/foo.git")
}
+
+func FuzzNewEndpoint(f *testing.F) {
+
+ f.Fuzz(func(t *testing.T, input string) {
+ NewEndpoint(input)
+ })
+}