summaryrefslogtreecommitdiffstats
path: root/helpers/pygments_test.go
diff options
context:
space:
mode:
authorAlbert Nigmatzianov <albertnigma@gmail.com>2016-10-24 20:56:00 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-10-24 20:56:00 +0200
commitf21e2f25c99c547a2f35d209935f8f1c52fa2671 (patch)
treef2bb860213e88b0244c31144cfcd872665096f06 /helpers/pygments_test.go
parentd9f54a13c14f12ccc8af33e9dbd611c2cd113324 (diff)
all: Unify case of config variable names
All config variables starts with low-case and uses camelCase. If there is abbreviation at the beginning of the name, the whole abbreviation will be written in low-case. If there is abbreviation at the end of the name, the whole abbreviation will be written in upper-case. For example, rssURI.
Diffstat (limited to 'helpers/pygments_test.go')
-rw-r--r--helpers/pygments_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/helpers/pygments_test.go b/helpers/pygments_test.go
index 7ee07828c..1cca68eac 100644
--- a/helpers/pygments_test.go
+++ b/helpers/pygments_test.go
@@ -35,8 +35,8 @@ func TestParsePygmentsArgs(t *testing.T) {
{"style", "foo", false, false},
} {
viper.Reset()
- viper.Set("PygmentsStyle", this.pygmentsStyle)
- viper.Set("PygmentsUseClasses", this.pygmentsUseClasses)
+ viper.Set("pygmentsStyle", this.pygmentsStyle)
+ viper.Set("pygmentsUseClasses", this.pygmentsUseClasses)
result1, err := parsePygmentsOpts(this.in)
if b, ok := this.expect1.(bool); ok && !b {
@@ -72,14 +72,14 @@ func TestParseDefaultPygmentsArgs(t *testing.T) {
} {
viper.Reset()
- viper.Set("PygmentsOptions", this.pygmentsOptions)
+ viper.Set("pygmentsOptions", this.pygmentsOptions)
if s, ok := this.pygmentsStyle.(string); ok {
- viper.Set("PygmentsStyle", s)
+ viper.Set("pygmentsStyle", s)
}
if b, ok := this.pygmentsUseClasses.(bool); ok {
- viper.Set("PygmentsUseClasses", b)
+ viper.Set("pygmentsUseClasses", b)
}
result, err := parsePygmentsOpts(this.in)