Use camel case instead of ALL_CAPS (#1419)

* Use camel case instead of ALL_CAPS

* Update mode.go
This commit is contained in:
David Zhang
2019-02-22 12:53:47 +08:00
committed by 田欧
parent 48f6c6137c
commit d7daffc26b
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -13,13 +13,13 @@ import (
)
func init() {
os.Setenv(ENV_GIN_MODE, TestMode)
os.Setenv(EnvGinMode, TestMode)
}
func TestSetMode(t *testing.T) {
assert.Equal(t, testCode, ginMode)
assert.Equal(t, TestMode, Mode())
os.Unsetenv(ENV_GIN_MODE)
os.Unsetenv(EnvGinMode)
SetMode("")
assert.Equal(t, debugCode, ginMode)