summaryrefslogtreecommitdiffstats
path: root/helpers/url_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 /helpers/url_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 'helpers/url_test.go')
-rw-r--r--helpers/url_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/helpers/url_test.go b/helpers/url_test.go
index 35ade94e5..b11be3521 100644
--- a/helpers/url_test.go
+++ b/helpers/url_test.go
@@ -6,7 +6,7 @@ import (
"testing"
)
-func TestUrlize(t *testing.T) {
+func TestURLize(t *testing.T) {
tests := []struct {
input string
expected string
@@ -26,7 +26,7 @@ func TestUrlize(t *testing.T) {
}
}
-func TestSanitizeUrl(t *testing.T) {
+func TestSanitizeURL(t *testing.T) {
tests := []struct {
input string
expected string
@@ -76,7 +76,7 @@ func TestMakePermalink(t *testing.T) {
}
}
-func TestUrlPrep(t *testing.T) {
+func TestURLPrep(t *testing.T) {
type test struct {
ugly bool
input string