We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a330f42 commit 12c24c2Copy full SHA for 12c24c2
tests/fuzz/fuzz_test.go
@@ -19,13 +19,15 @@ func newFuzzRenderContext() *markup.RenderContext {
19
20
func FuzzMarkdownRenderRaw(f *testing.F) {
21
f.Fuzz(func(t *testing.T, data []byte) {
22
+ setting.IsInTesting = true
23
setting.AppURL = "http://localhost:3000/"
24
markdown.RenderRaw(newFuzzRenderContext(), bytes.NewReader(data), io.Discard)
25
})
26
}
27
28
func FuzzMarkupPostProcess(f *testing.F) {
29
30
31
32
markup.PostProcessDefault(newFuzzRenderContext(), bytes.NewReader(data), io.Discard)
33
0 commit comments