diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/fuzz.go | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/tools/fuzz.go b/tools/fuzz.go index d629096ed6..64fda17b5d 100644 --- a/tools/fuzz.go +++ b/tools/fuzz.go @@ -24,16 +24,14 @@ import ( // (for example, the input is lexically correct and was parsed successfully). // -1 if the input must not be added to corpus even if gives new coverage and 0 otherwise. -var ( - renderContext = markup.RenderContext{ - Ctx: context.Background(), - URLPrefix: "https://example.com/go-gitea/gitea", - Metas: map[string]string{ - "user": "go-gitea", - "repo": "gitea", - }, - } -) +var renderContext = markup.RenderContext{ + Ctx: context.Background(), + URLPrefix: "https://example.com/go-gitea/gitea", + Metas: map[string]string{ + "user": "go-gitea", + "repo": "gitea", + }, +} func FuzzMarkdownRenderRaw(data []byte) int { setting.AppURL = "http://localhost:3000/" |