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

Function TestInitConfigWithXml

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

Source from the content-addressed store, hash-verified

17}
18
19func TestInitConfigWithXml(t *testing.T) {
20 conf, err := InitConfig("testdata/dotweb.conf", "xml")
21
22 test.Nil(t, err)
23 test.NotNil(t, conf)
24 test.NotNil(t, conf.App)
25 test.NotNil(t, conf.App.LogPath)
26 test.NotNil(t, conf.ConfigSet)
27 // test.Equal(t, 4, conf.ConfigSet.Len())
28}

Callers

nothing calls this directly

Calls 3

NilFunction · 0.92
NotNilFunction · 0.92
InitConfigFunction · 0.85

Tested by

no test coverage detected