diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-03-23 10:10:28 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-03-23 10:10:28 +0100 |
commit | 937592cb85f6b4bf4603230050ac0afdcc93058b (patch) | |
tree | 9a0f175ebf52f0928581eb252d25cbd6903384c8 /hugolib/page_taxonomy_test.go | |
parent | 8a60571fd2bd95f77c25d50daf285196e91a266a (diff) |
hugolib: Fix some more Golint warnings
Diffstat (limited to 'hugolib/page_taxonomy_test.go')
-rw-r--r-- | hugolib/page_taxonomy_test.go | 20 |
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") |