forked from kevadesu/forgejo
[gitea] week 2025-03 cherry pick (gitea/main -> forgejo) (#6539)
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6539 Reviewed-by: Gusted <gusted@noreply.codeberg.org>
This commit is contained in:
commit
387f590d9c
5 changed files with 22 additions and 8 deletions
|
@ -27,6 +27,7 @@ var renderContext = markup.RenderContext{
|
|||
|
||||
func FuzzMarkdownRenderRaw(f *testing.F) {
|
||||
f.Fuzz(func(t *testing.T, data []byte) {
|
||||
setting.IsInTesting = true
|
||||
setting.AppURL = "http://localhost:3000/"
|
||||
markdown.RenderRaw(&renderContext, bytes.NewReader(data), io.Discard)
|
||||
})
|
||||
|
@ -34,6 +35,7 @@ func FuzzMarkdownRenderRaw(f *testing.F) {
|
|||
|
||||
func FuzzMarkupPostProcess(f *testing.F) {
|
||||
f.Fuzz(func(t *testing.T, data []byte) {
|
||||
setting.IsInTesting = true
|
||||
setting.AppURL = "http://localhost:3000/"
|
||||
markup.PostProcess(&renderContext, bytes.NewReader(data), io.Discard)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue