测试IsDevelopmentMode函数
(t *testing.T)
| 31 | |
| 32 | // 测试IsDevelopmentMode函数 |
| 33 | func Test_IsDevelopmentMode_1(t *testing.T) { |
| 34 | app := New() |
| 35 | app.Config.App.RunMode = "development" |
| 36 | b := app.IsDevelopmentMode() |
| 37 | test.Equal(t, true, b) |
| 38 | t.Log("Run IsDevelopmentMode :", b) |
| 39 | } |
| 40 | |
| 41 | func Test_IsDevelopmentMode_2(t *testing.T) { |
| 42 | app := New() |
nothing calls this directly
no test coverage detected