diff options
author | Anthony Fok <foka@debian.org> | 2015-03-11 11:34:57 -0600 |
---|---|---|
committer | bep <bjorn.erik.pedersen@gmail.com> | 2015-03-11 21:55:00 +0100 |
commit | 67df33f50069445d53d373790e8c636e47013a72 (patch) | |
tree | c4e9d646f32aa2a7a40e6c5597b904647bc85e3f /commands/server_test.go | |
parent | 00f07c5374d859057c6e7c4731000b5978364819 (diff) |
Correct initialisms as suggested by golint
First step to use initialisms that golint suggests,
for example:
Line 116: func GetHtmlRenderer should be GetHTMLRenderer
as see on http://goreportcard.com/report/spf13/hugo
Thanks to @bep for the idea!
Note that command-line flags (cobra and pflag)
as well as struct fields like .BaseUrl and .Url
that are used in Go HTML templates need more work
to maintain backward-compatibility, and thus
are NOT yet dealt with in this commit.
First step in fixing #959.
Diffstat (limited to 'commands/server_test.go')
-rw-r--r-- | commands/server_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/commands/server_test.go b/commands/server_test.go index 57a500859..ea853e801 100644 --- a/commands/server_test.go +++ b/commands/server_test.go @@ -6,11 +6,11 @@ import ( "github.com/spf13/viper" ) -func TestFixUrl(t *testing.T) { +func TestFixURL(t *testing.T) { type data struct { TestName string - CliBaseUrl string - CfgBaseUrl string + CLIBaseURL string + CfgBaseURL string AppendPort bool Port int Result string @@ -28,11 +28,11 @@ func TestFixUrl(t *testing.T) { } for i, test := range tests { - BaseUrl = test.CliBaseUrl - viper.Set("BaseUrl", test.CfgBaseUrl) + BaseURL = test.CLIBaseURL + viper.Set("BaseURL", test.CfgBaseURL) serverAppend = test.AppendPort serverPort = test.Port - result, err := fixUrl(BaseUrl) + result, err := fixURL(BaseURL) if err != nil { t.Errorf("Test #%d %s: unexpected error %s", i, test.TestName, err) } |