summaryrefslogtreecommitdiffstats
path: root/hugolib/shortcode_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-03-24 14:42:03 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-03-24 14:42:03 +0100
commit7c84e6b3e32bdb61a6a11d34545f4177db8e92fa (patch)
tree23cdf094ae7a0aaa71436bc82f1431cada5da2fb /hugolib/shortcode_test.go
parent3e77886aadf4fbddc20fb12fe35e69d46d399eef (diff)
hugolib: Even more Golint fixes
Diffstat (limited to 'hugolib/shortcode_test.go')
-rw-r--r--hugolib/shortcode_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/hugolib/shortcode_test.go b/hugolib/shortcode_test.go
index 544cc4baa..833cdae99 100644
--- a/hugolib/shortcode_test.go
+++ b/hugolib/shortcode_test.go
@@ -40,7 +40,7 @@ func CheckShortCodeMatch(t *testing.T, input, expected string, template tpl.Temp
func CheckShortCodeMatchAndError(t *testing.T, input, expected string, template tpl.Template, expectError bool) {
- p, _ := pageFromString(SIMPLE_PAGE, "simple.md")
+ p, _ := pageFromString(simplePage, "simple.md")
output, err := HandleShortcodes(input, p, template)
if err != nil && !expectError {
@@ -60,7 +60,7 @@ func TestShortcodeGoFuzzReports(t *testing.T) {
tem := tpl.New()
tem.AddInternalShortcode("sc.html", `foo`)
- p, _ := pageFromString(SIMPLE_PAGE, "simple.md")
+ p, _ := pageFromString(simplePage, "simple.md")
for i, this := range []struct {
data string
@@ -265,7 +265,7 @@ func TestHighlight(t *testing.T) {
void do();
{{< /highlight >}}`
- p, _ := pageFromString(SIMPLE_PAGE, "simple.md")
+ p, _ := pageFromString(simplePage, "simple.md")
output, err := HandleShortcodes(code, p, templ)
if err != nil {
@@ -333,7 +333,7 @@ func TestExtractShortcodes(t *testing.T) {
fmt.Sprintf("Hello %sworld%s. And that's it.", testScPlaceholderRegexp, testScPlaceholderRegexp), ""},
} {
- p, _ := pageFromString(SIMPLE_PAGE, "simple.md")
+ p, _ := pageFromString(simplePage, "simple.md")
tem := tpl.New()
tem.AddInternalShortcode("tag.html", `tag`)
tem.AddInternalShortcode("sc1.html", `sc1`)