summaryrefslogtreecommitdiffstats
path: root/hugolib/page_taxonomy_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-03-23 10:10:28 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-03-23 10:10:28 +0100
commit937592cb85f6b4bf4603230050ac0afdcc93058b (patch)
tree9a0f175ebf52f0928581eb252d25cbd6903384c8 /hugolib/page_taxonomy_test.go
parent8a60571fd2bd95f77c25d50daf285196e91a266a (diff)
hugolib: Fix some more Golint warnings
Diffstat (limited to 'hugolib/page_taxonomy_test.go')
-rw-r--r--hugolib/page_taxonomy_test.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/hugolib/page_taxonomy_test.go b/hugolib/page_taxonomy_test.go
index d463e5800..30efd8c7f 100644
--- a/hugolib/page_taxonomy_test.go
+++ b/hugolib/page_taxonomy_test.go
@@ -18,13 +18,13 @@ import (
"testing"
)
-var PAGE_YAML_WITH_TAXONOMIES_A = `---
+var pageYamlWithTaxonomiesA = `---
tags: ['a', 'B', 'c']
categories: 'd'
---
YAML frontmatter with tags and categories taxonomy.`
-var PAGE_YAML_WITH_TAXONOMIES_B = `---
+var pageYamlWithTaxonomiesB = `---
tags:
- "a"
- "B"
@@ -33,13 +33,13 @@ categories: 'd'
---
YAML frontmatter with tags and categories taxonomy.`
-var PAGE_YAML_WITH_TAXONOMIES_C = `---
+var pageYamlWithTaxonomiesC = `---
tags: 'E'
categories: 'd'
---
YAML frontmatter with tags and categories taxonomy.`
-var PAGE_JSON_WITH_TAXONOMIES = `{
+var pageJSONWithTaxonomies = `{
"categories": "D",
"tags": [
"a",
@@ -49,18 +49,18 @@ var PAGE_JSON_WITH_TAXONOMIES = `{
}
JSON Front Matter with tags and categories`
-var PAGE_TOML_WITH_TAXONOMIES = `+++
+var pageTomlWithTaxonomies = `+++
tags = [ "a", "B", "c" ]
categories = "d"
+++
TOML Front Matter with tags and categories`
func TestParseTaxonomies(t *testing.T) {
- for _, test := range []string{PAGE_TOML_WITH_TAXONOMIES,
- PAGE_JSON_WITH_TAXONOMIES,
- PAGE_YAML_WITH_TAXONOMIES_A,
- PAGE_YAML_WITH_TAXONOMIES_B,
- PAGE_YAML_WITH_TAXONOMIES_C,
+ for _, test := range []string{pageTomlWithTaxonomies,
+ pageJSONWithTaxonomies,
+ pageYamlWithTaxonomiesA,
+ pageYamlWithTaxonomiesB,
+ pageYamlWithTaxonomiesC,
} {
p, _ := NewPage("page/with/taxonomy")