diff options
author | Gusted <postmaster@gusted.xyz> | 2022-12-27 02:15:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-27 09:15:35 +0800 |
commit | b48cf03717e99ff33d1e845c97e6f8c469cd2e6d (patch) | |
tree | 35227df20ccfc6738d4cae6ab8f31afba30351b2 /modules/markup/markdown/markdown_test.go | |
parent | 83640c449eb6a1b31bc09b1372cc156d114804f8 (diff) | |
download | gitea-b48cf03717e99ff33d1e845c97e6f8c469cd2e6d.tar.gz gitea-b48cf03717e99ff33d1e845c97e6f8c469cd2e6d.zip |
Remove deadcode (#22245)
- Remove code that isn't being used.
Found this is my stash from a few weeks ago, not sure how I found this
in the first place.
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'modules/markup/markdown/markdown_test.go')
-rw-r--r-- | modules/markup/markdown/markdown_test.go | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/modules/markup/markdown/markdown_test.go b/modules/markup/markdown/markdown_test.go index bb2c47f18e..cc683dc5b7 100644 --- a/modules/markup/markdown/markdown_test.go +++ b/modules/markup/markdown/markdown_test.go @@ -74,28 +74,6 @@ func TestRender_StandardLinks(t *testing.T) { `<p><a href="`+lnkWiki+`" rel="nofollow">WikiPage</a></p>`) } -func TestMisc_IsMarkdownFile(t *testing.T) { - setting.Markdown.FileExtensions = []string{".md", ".markdown", ".mdown", ".mkd"} - trueTestCases := []string{ - "test.md", - "wow.MARKDOWN", - "LOL.mDoWn", - } - falseTestCases := []string{ - "test", - "abcdefg", - "abcdefghijklmnopqrstuvwxyz", - "test.md.test", - } - - for _, testCase := range trueTestCases { - assert.True(t, IsMarkdownFile(testCase)) - } - for _, testCase := range falseTestCases { - assert.False(t, IsMarkdownFile(testCase)) - } -} - func TestRender_Images(t *testing.T) { setting.AppURL = AppURL setting.AppSubURL = AppSubURL |