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

Function TestInitConfig

config/configs_test.go:9–17  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

7)
8
9func TestInitConfig(t *testing.T) {
10 conf, err := InitConfig("testdata/dotweb.json", "json")
11
12 test.Nil(t, err)
13 test.NotNil(t, conf)
14 test.NotNil(t, conf.App)
15 test.NotNil(t, conf.App.LogPath)
16 test.NotNil(t, conf.ConfigSet)
17}
18
19func TestInitConfigWithXml(t *testing.T) {
20 conf, err := InitConfig("testdata/dotweb.conf", "xml")

Callers

nothing calls this directly

Calls 3

NilFunction · 0.92
NotNilFunction · 0.92
InitConfigFunction · 0.85

Tested by

no test coverage detected