MCPcopy Create free account
hub / github.com/devfeel/dotweb / Test_IsDevelopmentMode_1

Function Test_IsDevelopmentMode_1

dotweb_test.go:33–39  ·  view source on GitHub ↗

测试IsDevelopmentMode函数

(t *testing.T)

Source from the content-addressed store, hash-verified

31
32// 测试IsDevelopmentMode函数
33func 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
41func Test_IsDevelopmentMode_2(t *testing.T) {
42 app := New()

Callers

nothing calls this directly

Calls 3

EqualFunction · 0.92
NewFunction · 0.85
IsDevelopmentModeMethod · 0.80

Tested by

no test coverage detected