summaryrefslogtreecommitdiffstats
path: root/hugolib/page_permalink_test.go
diff options
context:
space:
mode:
authorAnthony Fok <foka@debian.org>2015-03-17 22:16:54 -0700
committerbep <bjorn.erik.pedersen@gmail.com>2015-03-18 11:30:37 +0100
commit8b8fb417ae065954a056ea018bd092748cc9127c (patch)
treea9160d1f6acc218bcb8728d729deaf1b532b56b3 /hugolib/page_permalink_test.go
parentca69cad8aa5d8eefbce13abd97b2b979339a458c (diff)
More initialism corrections (golint)
Thanks to @bep's new, brilliant helpers.Deprecated() function, the following functions or variables are transitioned to their new names, preserving backward compatibility for v0.14 and warning the user of upcoming obsolescence in v0.15: * .Url → .URL (for node, menu and paginator) * .Site.BaseUrl → .Site.BaseURL * .Site.Indexes → .Site.Taxonomies * .Site.Recent → .Site.Pages * getJson → getJSON * getCsv → getCSV * safeHtml → safeHTML * safeCss → safeCSS * safeUrl → safeURL Also fix related initialisms in strings and comments. Continued effort in fixing #959.
Diffstat (limited to 'hugolib/page_permalink_test.go')
-rw-r--r--hugolib/page_permalink_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/hugolib/page_permalink_test.go b/hugolib/page_permalink_test.go
index dc4dc8371..1ed232348 100644
--- a/hugolib/page_permalink_test.go
+++ b/hugolib/page_permalink_test.go
@@ -35,7 +35,7 @@ func TestPermalink(t *testing.T) {
{"x/y/z/boofar.md", "x/y/z/", "http://barnew/boo/", "boofar", "", true, true, "http://barnew/boo/x/y/z/boofar.html", "/x/y/z/boofar.html"},
{"x/y/z/boofar.md", "x/y/z/", "http://barnew/boo", "boofar", "", true, true, "http://barnew/boo/x/y/z/boofar.html", "/x/y/z/boofar.html"},
- // test url overrides
+ // test URL overrides
{"x/y/z/boofar.md", "x/y/z", "", "", "/z/y/q/", false, false, "/z/y/q/", "/z/y/q/"},
}
@@ -46,12 +46,12 @@ func TestPermalink(t *testing.T) {
viper.Set("canonifyurls", test.canonifyURLs)
p := &Page{
Node: Node{
- UrlPath: UrlPath{
+ URLPath: URLPath{
Section: "z",
- Url: test.url,
+ URL: test.url,
},
Site: &SiteInfo{
- BaseUrl: test.base,
+ BaseURL: test.base,
},
},
Source: Source{File: *source.NewFile(filepath.FromSlash(test.file))},