diff options
Diffstat (limited to 'hugolib/shortcode_test.go')
-rw-r--r-- | hugolib/shortcode_test.go | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/hugolib/shortcode_test.go b/hugolib/shortcode_test.go index cafe76703..15c27a42e 100644 --- a/hugolib/shortcode_test.go +++ b/hugolib/shortcode_test.go @@ -107,15 +107,9 @@ title: "Shortcodes Galore!" t.Parallel() c := qt.New(t) - counter := 0 - placeholderFunc := func() string { - counter++ - return fmt.Sprintf("HAHA%s-%dHBHB", shortcodePlaceholderPrefix, counter) - } - p, err := pageparser.ParseMain(strings.NewReader(test.input), pageparser.Config{}) c.Assert(err, qt.IsNil) - handler := newShortcodeHandler(nil, s, placeholderFunc) + handler := newShortcodeHandler(nil, s) iter := p.Iterator() short, err := handler.extractShortcode(0, 0, iter) |