(t *testing.T)
| 7 | ) |
| 8 | |
| 9 | func 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 | |
| 19 | func TestInitConfigWithXml(t *testing.T) { |
| 20 | conf, err := InitConfig("testdata/dotweb.conf", "xml") |
nothing calls this directly
no test coverage detected